Odoo Help


2 Answers

Try replacing this:

<field name="domain_force">[('branch_id', 'in', [company.id for company in user.company_ids])]</field>

for this:

<field name="domain_force">[('branch_id', 'in', uer.company_ids.ids)]</field>

Mind And Go
14/05/14 17:07


Does the company structure not sufficient for you? Does the branch_id a new data needed by your structure.

If it is child_of works only with parent_id fields (if I remember well) so you won't be able to do better than that except if you override the orm and create new operand to browse hierachy on variable fields

Hope it could help

Ask a Question
Keep Informed
1 follower(s)
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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now