Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7547 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
0
lip 24
1029
1
gru 21
4758
1
cze 20
3588
1
maj 23
1991
1
sty 19
21275