Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
If you too hate the display of this forum, please refer:
domain = ('foofield', 'operator', barvalue)
- In my case barvalue IS a list.
- I want foofield to be a list. More specifically, I want foofield to contain the values (as a list) of the many2many field 'foofield'
- I want operator do define foofield as an entire subset of barvalue. (best guess: 'in')
I know this is probably not possible, so workaround, conceptual help would be nice...
Actually, https://github.com/odoo/odoo/blob/1f20f61ab4f6acf79f4db6ba9a17c1282014ef5f/openerp/osv/expression.py#L932-L971 supports your answer very well.
Errors might raise from different sources while debugging. I somehow was prone to believe this doesn't work because documentation (https://doc.openerp.com/v6.0/developer/2_5_Objects_Fields_Methods/methods.html/) states:
field_name must be a valid name of field of the object model, possibly following many-to-one relationships using dot-notation, e.g 'street' or 'partner_id.country' are valid values
(explicitely states many2one but doesn't mention many2many )
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/20/14, 6:00 PM|
|Seen: 1465 times|
|Last updated: 3/16/15, 8:10 AM|