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

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