New question #181987 on OpenERP Server:
https://answers.launchpad.net/openobject-server/+question/181987
I'd like to create a module that loads a CSV file of partner categories, and
another one that adds a new many-to-one field for a category in the partner,
and let users it's value only among the categories of the first module.
I tried to restrict the domain with this but it didn't work :
<field name="ape_id"
domain="[('parent_id','child_of', ref('...other_module.xml_id...'))]"/>
The client prints this to STDOUT:
ERROR:tools.expr_eval:[('parent_id','child_of', ref(...other_module.xml_id...))]
Traceback (most recent call last):
File "/home/ls/Sources/openerp/trunk/client/bin/tools/__init__.py", line 52,
in expr_eval
temp = eval(string, context)
File "<string>", line 1, in <module>
TypeError: 'bool' object is not callable
Any idea how I can achieve this?
Lionel.
--
You received this question notification because you are a member of
OpenERP Framework Experts, which is an answer contact for OpenERP
Server.
--
Mailing list: https://launchpad.net/~credativ
Post to : [email protected]
Unsubscribe : https://launchpad.net/~credativ
More help : https://help.launchpad.net/ListHelp