Community mailing list archives

community@mail.odoo.com

domain filter

by
tibyan.hussien
- 11/17/2015 08:09:11
Salam Community

I want to create a rule that a login user who belongs to a branch, can only see the projects of his branch. I used below domain filter

  <field name="domain_force">['|',('branch_id','=',False),('branch_id','child_of',[user.branch_id.id])]</field>

 But I got an error of

ValueError: Invalid field 'parent_id' in leaf "<osv.ExtendedLeaf: ('parent_id', 'in', [1]) on res_branch (ctx: )>"
 

Tibyan