crm_claim categ_id domain is not working

Bug #1061690 reported by Benoit Guillot - http://www.akretion.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 1

Bug Description

hello,

In the module crm_claim, the field categ_id has a domain :

        'categ_id': fields.many2one('crm.case.categ', 'Category', \
                            domain="[('section_id','=',section_id),\
                            ('object_id.model', '=', 'crm.claim')]"),

However, in the view crm_case_claims_form_view, the field has the attribute widget="selection" :

                                    <field name="categ_id" widget="selection"
                                        domain="[('object_id.model', '=', 'crm.claim')]" />

So two problems appears here.
First the domain does not consider the section_id anymore.

Second, when the field is a selection, dynamical domains are not allowed anymore.

The result is that the categories showed in the selection are not depending on the section_id chosen.

Best regards,

Benoît

Tags: claim crm

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
importance: Medium → Low
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Benoit Guillot ,

For second issue please refer odo comment #4 in lp:695089 .
So we can not consider second point as a bug .

Thanks.

Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
tags: added: claim crm
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Chirag Dodiya(OpenERP) (chirag.dodiya-openerp) wrote :

Hello,

It has been Fixed in this branch: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1061690-cod

revision-id: <email address hidden>

revno: 9038.

It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.