95fa9fadb8467e1f2e7424ac9f6e1f35316aad7e
Uninstallation does not cope well with `setup_models` being performed unconditionally as those will dramatically alter registry states, and resurrect computes which the uninstallation has disabled: rather than try to update registry models in-place (which is rather fraught) the uninstallation deletes the columns, tables, and `ir.*` reflection records and only after all of that is done does it reset the registry. This means while it does fix up the registry caches (`field_depends` and `field_triggers`) as it goes, resetting those may cause the recomputation of fields whose columns have been deleted, possibly based on dependencies whose columns have also been deleted. As such these kinds of manipulations should either be performed in `@ondelete` methods which don't get executed during uninstallation, or they should be gated behind an uninstallation check. In crm the latter is necessary, as `ondelete` runs before `unlink` actually executes, and the registry reset would run too early (and unnecessarily). In base, only the latter is possible as we're not in `unlink` itself, instead `IrModelFields._prepare_update` is called *during* uninstallation and its trailing `setup_models` causes the issue. X-original-commit: 357b9f2c9fd44e14e5b7c9d3c17f1794691986f3 Part-of: odoo/odoo#121522
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%