← Back to team overview

openerp-india team mailing list archive

[Bug 765724] Re: Allow ref() in domain XML attribute

 

Marking invalid since there's an answer then.
Lionel.

** Changed in: openobject-server
       Status: Confirmed => Invalid

** Description changed:

  Currently, you can't use domain in XML ID, for example, imagine you
  define a partner category into an XML file:
  
  <record model="res.partner.category" id="categ_id">
  
  If you want to filter in this category using domain:
  
  <field name="partner_id" domain="[('category_id', '=',
  ref('categ_id'))]"/>
  
  This won't work ! And this is very boring !
+ 
+ ---
+ Short answer :  domain="[('category_id', '=', %(categ_id)d)]"

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

Title:
  Allow ref() in domain XML attribute

Status in OpenERP Server:
  Invalid

Bug description:
  Currently, you can't use domain in XML ID, for example, imagine you
  define a partner category into an XML file:

  <record model="res.partner.category" id="categ_id">

  If you want to filter in this category using domain:

  <field name="partner_id" domain="[('category_id', '=',
  ref('categ_id'))]"/>

  This won't work ! And this is very boring !

  ---
  Short answer :  domain="[('category_id', '=', %(categ_id)d)]"

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