Commit 7c1970e
committed
[ADD] cetmix_tower_jet_isolation: add uninstall hook to reset isolation data
When the module is uninstalled Odoo does not drop the columns it added to
cx.tower.jet.template, so existing records may keep isolation_mode=True and
silently continue to restrict commands/plans even with the module gone.
The new uninstall_hook resets all isolation-related fields to their neutral
state (isolation_mode=False, forced_applicability=False, both tag M2M cleared)
on every jet template before the module is removed from the registry.
* hooks.py - new file with uninstall_hook function
* __init__.py - import hooks so Odoo can resolve the hook entry point
* __manifest__.py - register uninstall_hook key1 parent 1028b27 commit 7c1970e
3 files changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments