Tryton 7.0: ir.rule: Eval('user', ...) --> Eval('user_id', -1)

This commit is contained in:
Frederik Jaeckel 2023-11-30 13:18:14 +01:00
parent fbdc68c642
commit 7062399319
6 changed files with 33 additions and 4 deletions

View file

@ -96,7 +96,7 @@ full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rg_recon_write-1">
<field name="domain" eval="['OR',
('cashbook.owner.id', '=', Eval('user', {}).get('id', -1)),
('cashbook.owner.id', '=', Eval('user_id', -1)),
('cashbook.reviewer.id', 'in', Eval('groups', [])),
]" pyson="1"/>
<field name="rule_group" ref="rg_recon_write"/>