summaryrefslogtreecommitdiff
path: root/addons/website_partner/__init__.py
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2018-02-05 09:25:08 +0100
committerGitHub <noreply@github.com>2018-02-05 09:25:08 +0100
commit985c224e2f0fb4e3064db354c3fbb92b9a188918 (patch)
treee49e3a85b6b6ceb07932a8625aac0a1c8dda4315 /addons/website_partner/__init__.py
parent352be6b6dfbdb2ad02f331238c1eec448ff7b955 (diff)
[FIX] sale_management,account_invoicing: proper uninstall
Previous to this commit, installing sale_managmenet/account_invoicing would add some menu items for the `sale/account` module (which contains all the logic for the sale/accounting flow) and it would also install sale/account since it's a dependency, however, horror would strike if one were to go and uninstall sale_management/account_invoicing: nothing happens! This is because these "facade" modules don't actually install anything, and uninstalling an app does not force the uninstallation of its dependencies, thus the `sale/account` module would stay installed, along with the views introduced by the "facade" module. To fix this, we create an uninstall_hook which forces the removal of the ir.ui.menus that the "facade" modules introduce, so that the functionality remains (for modules that depend on it) but it's not user-accessible (because it should only be accessible to users if the facade module is installed).
Diffstat (limited to 'addons/website_partner/__init__.py')
0 files changed, 0 insertions, 0 deletions