Closed lorenzoallegrucci closed 1 year ago
partner_multi_company
When uninstalled, this module restores a wrong ir.rule, in particular it restores an old version of base.res_partner_rule
base.res_partner_rule
Affected versions:
Steps to reproduce the behavior:
Expected behavior On uninstall it is expected this module would restore the original odoo14 base.res_partner_rule, it restores an old version of it instead This is the standard updated odoo14 rule I expect to be restored: https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/security/base_security.xml#L16
"domain_force": ( "['|', '|', ('partner_share', '=', False), " "('company_id', 'in', company_ids), " "('company_id', '=', False)]" ),
This is what is actually restored, and I think "active" False is also wrong
"active": False, "domain_force": ( " ['|', ('company_id', '=', user.company_id.id)," " ('company_id', '=', False)]" ),
Additional context
Module
partner_multi_company
Describe the bug
When uninstalled, this module restores a wrong ir.rule, in particular it restores an old version of
base.res_partner_rule
To Reproduce
Affected versions:
Steps to reproduce the behavior:
base.res_partner_rule
Expected behavior On uninstall it is expected this module would restore the original odoo14
base.res_partner_rule
, it restores an old version of it instead This is the standard updated odoo14 rule I expect to be restored: https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/security/base_security.xml#L16This is what is actually restored, and I think "active" False is also wrong
Additional context