Skip to Content
Menu
This question has been flagged
2356 Views

my record rules are:

i have created "journal_ids" many2many field in user form there i could allowed journals based on that moves would be filter but moves are not filtering as expected please some body help me if i want to add something

<record id="account.account_move_see_all" model="ir.rule">
<field name="name">only allowed Journal Entries</field>
<field ref="account.model_account_move" name="model_id"/>
<field name="domain_force">
[('journal_id','in',user.journal_ids.ids)]
</field>
<field name="groups" eval="[(4, ref('account.group_account_invoice'))]"/>
</record>

<record id="account.account_move_line_see_all" model="ir.rule">
<field name="name">allowed Journal Items</field>
<field ref="account.model_account_move_line" name="model_id"/>
<field name="domain_force">
[('journal_id','in',user.journal_ids.ids)]
</field>
<field name="groups" eval="[(4, ref('account.group_account_invoice'))]"/>
</record>
Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
31
1
Dec 24
56
1
Dec 24
73
0
Dec 24
43
1
Dec 24
70