跳至內容
選單
此問題已被標幟
3375 瀏覽次數

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>
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 25
7
1
8月 25
131
1
8月 25
202
2
8月 25
213
0
8月 25
126