odoo/industry#1845

Created by Amardeep Sharma (amas)
Merged at cc4610ef134b7841350b6437c6c0e4367fa2aa64

Statuses:

label
odoo-dev:19.0-handle-uninstallation-of-industries-amas
head
6b3b14fe039d9febc856e8e1ed3d72276612c172
merged
1 month ago by Industry, Vallaeys Valentin (vava)
odoo/industry
19.0 #1845
saas-19.1 #1882
saas-19.2 #1885
master #1887

[IMP] *: add uninstall hook automation

Uninstalling an industry module (e.g., real_estate) could leave modified window actions (domain, context, etc.) referencing fields created by the industry. After removal, these fields no longer exist, leading to tracebacks when opening related menus such as CRM or Products.

This commit introduces an automation triggered at module uninstallation to act similarly to an uninstall_hook. This ensures that industry customizations are properly cleaned during module removal.

Task ID: 5936090