summaryrefslogtreecommitdiff
path: root/addons/base_setup/models
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2018-03-13 09:41:43 +0100
committerGitHub <noreply@github.com>2018-03-13 09:41:43 +0100
commit84b6c46943f20b8dc77b390627fbfefa6a181327 (patch)
tree6ed6c5c1da3f5f2f98e2c1e143cf968f9dddc6b1 /addons/base_setup/models
parent31a0bdec73adb09455e6a30a67d8ba23242b6787 (diff)
[FIX] registry, loading: re-init inherited SQL views
Before this commit: * Install any module that creates a SQL view and another that extends this view. e.g.: sale and pos_sale for `report.all.channels.sales`. * Uninstall the module that extended the SQL view. e.g.: uninstall pos_sale. * Try to access the view from the web client -> Traceback, table not found. This happens because when reloading the registry, postgres drops the sql view and it must be re-initialized. After this commit: We solve this issue by calculating all missing tables/views during the uninstallation process, and re-initializing all of them right before reloading the registry. Also remove sql-view hacks in the modules `sale` and `sale_margin`. Fixes #23528, #23529, #23530
Diffstat (limited to 'addons/base_setup/models')
0 files changed, 0 insertions, 0 deletions