openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #19911
[Bug 1091390] [NEW] _eval_xml does not work for reference fields
Public bug reported:
openerp/tools/convert.py
this works
<field name="name" eval="'dimu.portal,' + str(11)" />
this not
<field name="name" eval="'dimu.portal,' + str(self.pool.get('dimu.portal').search(cr, uid, ['ref','=','xyz'] )[0])"
self not defined
also
<field name="name">
portal_obj=self.pool.get('dimu.portal')
pid=str(portal_obj.search(cr, uid, ['ref','=','xyz'])[0])
action='dimu.portal,'+pid
</field>
does not evaluate
** Affects: openobject-server
Importance: Undecided
Status: New
--
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/1091390
Title:
_eval_xml does not work for reference fields
Status in OpenERP Server:
New
Bug description:
openerp/tools/convert.py
this works
<field name="name" eval="'dimu.portal,' + str(11)" />
this not
<field name="name" eval="'dimu.portal,' + str(self.pool.get('dimu.portal').search(cr, uid, ['ref','=','xyz'] )[0])"
self not defined
also
<field name="name">
portal_obj=self.pool.get('dimu.portal')
pid=str(portal_obj.search(cr, uid, ['ref','=','xyz'])[0])
action='dimu.portal,'+pid
</field>
does not evaluate
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1091390/+subscriptions
Follow ups
References