跳至內容
選單
此問題已被標幟
1 回覆
7510 瀏覽次數

res.partner.rule.private.employee How to override this rule. I want to deactivate it through code.

頭像
捨棄
最佳答案

Hi,

Either you can delete that rule or you can set active False for that record. Both can be done from UI or from Code.

Setting active False:

<record id="base.res_partner_rule_private_employee" model="ir.rule">
<field name="name">res.partner.rule.private.employee</field>
<field name="active" eval="False"/>
</record>

Deleting the rule:
<delete id="base.res_partner_rule_private_employee" model="ir.rule"/

Thanks

頭像
捨棄
作者

Thanks!

Messing with this rule, unfortunately, is quite dangerous. By deleting or archiving this rule any users that belong to the internal group will no longer able see any internal users / partners, and probably not even able to log-in.

相關帖文 回覆 瀏覽次數 活動
0
7月 24
1014
1
12月 21
4739
1
6月 20
3567
1
5月 23
1976
1
1月 19
21255