コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1978 ビュー

Hello

I am trying to create a record rule (Odoo 16) that hides all suppliers for users who are not assigned to the user group "Purchase / Users".

So far I've created an additional record rule for the model res.partner with the rule definition (domain filter): [('supplier_rank', '>', 0)]

Also I've added the group "Purchase / User" on this record rule.

This rule doesn't change anything. Users which are not assigned to the group still can see every supplier.

This rule used to work for me in odoo 12.

Thanks for all the help.

アバター
破棄
著作者 最善の回答

The record rule did not work because of another odoo standard rule: res.partner.rule.private.employee

I changed the domain of this rule from ['|', ('type', '!=', 'private'), ('type', '=', False)] to ['|', ('type', '!=', 'private'), ('type', '=', False),('supplier_rank','

Now it works.

アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 25
1207
1
7月 24
1664
4
12月 23
24266
1
8月 22
2052
1
10月 21
2268