Skip to main content

Add Extra Checks before uninstallation of modules

Project description

License: AGPL-3

Module Uninstallation Checks

This module extends the functionality of base module, to improve modules uninstallation process.

It provides an extra view, on module form to display which models (SQL tables) and which fields (SQL columns) will be dropped, if the selected module is uninstalled.

Technical Note

This module uses postgreSQL native column like reltuples in pg_class that provides approximative rows quantity. To have a precise value, please run first the following code:

REINDEX DATABASE my_database_name;

Usage

To use this module, you need to:

  1. Go to Settings / Modules / Local Modules

  2. Select an installed module

  3. Click on the button ‘Uninstallation Impact’

/module_uninstall_check/static/description/module_form.png
  • Sample, selecting sale_margin module

/module_uninstall_check/static/description/sale_margin_uninstallation.png
  • Sample, selecting sale_stock module, when sale_margin is installed

/module_uninstall_check/static/description/sale_uninstallation.png
Try me on Runbot

Known issues / Roadmap

  • In some cases, we want to uninstall a module, but prevent some data deletion. This can happen if we want to keep some datas after uninstallation or if the data moved into another module after a refactoring.

This module could implement such feature, adding extra feature on wizard lines, deleting or renaming xml ids.

  • For the time being, wizard displays size used for models in database. It could be interesting to know the space released by the deletion of a column.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits

Contributors

Funders

The development of this module has been financially supported by:

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo8_addon_module_uninstall_check-8.0.1.0.0.99.dev2-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo8_addon_module_uninstall_check-8.0.1.0.0.99.dev2-py2-none-any.whl
Algorithm Hash digest
SHA256 c2017c93c6d71a57ba237ebd08ecbc48f0e4a2cc55997a5b2f0bbcf818935097
MD5 9c5e236981d70592390700a8f9f0155e
BLAKE2b-256 cc9745a1e4816f9b0f292e7bcbb0ae10a668282f41bd724eb8ce8ba13acfa5a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page