← Back to team overview

openerp-india team mailing list archive

[Bug 1061690] Re: crm_claim categ_id domain is not working

 

** Changed in: openobject-addons
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1061690

Title:
  crm_claim categ_id domain is not working

Status in OpenERP Addons (modules):
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1061690/+subscriptions


References