Hi,
I couldn't be at OpenERP Community day, so I spent my day developping on
it :D I defined a product.uom.categ object in a data.xml file, and I
would liek to specify this category as a domain filter for my field :
'uom' : fields.many2one('product.uom', ....., domain=[('category_id',
'=', MY_CATEGORY_ID)]).
The problem is that I don't know the ID of my object, and matching on
the name is not safe (name can change, may have differents categories
with same name, etc).
This sounds like a basic thing, but I couldn't do this. So, any clue is
welcome.
Thanks,
--
Thibaut DIRLIK
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-community
More help : https://help.launchpad.net/ListHelp