Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3372 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
aug. 25
7
1
aug. 25
113
1
aug. 25
201
2
aug. 25
209
0
aug. 25
125