Skip to content

Commit

Permalink
[FIX] contract_operating_unit - use same logic as other security rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidderen committed Oct 1, 2024
1 parent fb7c92a commit 86fc4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contract_operating_unit/security/contract_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="model_id" ref="contract.model_contract_contract" />
<field
name="domain_force"
>['|',('operating_unit_id','=',False),('operating_unit_id','in',[g.id for g in user.operating_unit_ids])]</field>
>['|',('operating_unit_id','=',False),('operating_unit_id','in',operating_unit_ids)]</field>
<field name="name">Contracts from allowed operating units</field>
<field name="global" eval="True" />
<field eval="0" name="perm_unlink" />
Expand Down

0 comments on commit 86fc4d4

Please sign in to comment.