[IMP] Issus#99 : The requested operation cannot be completed due to security restrictions

This commit is contained in:
Haresh Chavda 2018-07-19 15:47:39 +05:30
parent 823c7409a5
commit 8a5c510fba

View File

@ -170,7 +170,7 @@
<field name="name">Picking type multi-branch</field>
<field name="model_id" ref="model_stock_picking_type"/>
<field name="global" eval="True"/>
<field name="domain_force">['|',('warehouse_id.branch_id','=',False), '|', ('warehouse_id.branch_id','in',[branch for branch in user.branch_ids.ids]), ('warehouse_id.branch_id','=', user.default_branch_id.id)]
<field name="domain_force">['|', ('warehouse_id','=',False), '|', ('warehouse_id.branch_id','=',False), '|', ('warehouse_id.branch_id','in',[branch for branch in user.branch_ids.ids]), ('warehouse_id.branch_id','=', user.default_branch_id.id)]
</field>
</record>