Skip to content

Commit

Permalink
[FIX] stock_operating_unit: access to picking types when warehouse is…
Browse files Browse the repository at this point in the history
… not set
  • Loading branch information
AaronHForgeFlow committed Sep 20, 2023
1 parent c983d5f commit 3300bc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stock_operating_unit/security/stock_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<record id="ir_rule_stock_picking_type_allowed_operating_units" model="ir.rule">
<field name="model_id" ref="stock.model_stock_picking_type" />
<field name="domain_force">['|',
('warehouse_id','=',False),
'|',
('warehouse_id.operating_unit_id','=', False),
('warehouse_id.operating_unit_id','in',user.operating_unit_ids.ids)]
</field>
Expand Down

0 comments on commit 3300bc4

Please sign in to comment.