ir.rule: Eval('user').get('groups') --> Eval('groups')
This commit is contained in:
parent
7220cff5ac
commit
fbdc68c642
4 changed files with 8 additions and 8 deletions
|
@ -81,7 +81,7 @@ full copyright notices and license terms. -->
|
|||
<record model="ir.rule" id="rg_split_write-1">
|
||||
<field name="domain" eval="['OR',
|
||||
('line.cashbook.owner.id', '=', Eval('user', {}).get('id', -1)),
|
||||
('line.cashbook.reviewer.id', 'in', Eval('user', {}).get('groups', [])),
|
||||
('line.cashbook.reviewer.id', 'in', Eval('groups', [])),
|
||||
]" pyson="1"/>
|
||||
<field name="rule_group" ref="rg_split_write"/>
|
||||
</record>
|
||||
|
@ -103,7 +103,7 @@ full copyright notices and license terms. -->
|
|||
</record>
|
||||
<record model="ir.rule" id="rg_split_read-1">
|
||||
<field name="domain" eval="[
|
||||
('line.cashbook.observer.id', 'in', Eval('user', {}).get('groups', [])),
|
||||
('line.cashbook.observer.id', 'in', Eval('groups', [])),
|
||||
]" pyson="1"/>
|
||||
<field name="rule_group" ref="rg_split_read"/>
|
||||
</record>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue