← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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 !

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/765724

Title:
  Allow ref() in domain XML attribute

Status in OpenERP Server:
  New

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 !


Follow ups

References