Odoo Help

0

0
2 Answers
0
Rodolfo Álvarez García
2018/6/12 上午1:57

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>

0
Mind And Go
2014/5/14 下午5:07

Hy,

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
Writer
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.

Register