summaryrefslogtreecommitdiff
path: root/odoo/sql_db.py
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2017-10-24 12:34:28 +0200
committerAdrian Torres <adt@odoo.com>2017-10-24 13:36:41 +0200
commit38f1875e0bee72a58cb039e68d79336be1c2d963 (patch)
treebf1e27fe34e980d05ddde9e6484e2ead22b74773 /odoo/sql_db.py
parentb26e0b9292d9c7bcaee488b8eb603edba1a90a4f (diff)
[FIX] base_action_rule: ignore uninstalled models
Before this commit, creating a base_action_rule with model X from module A and then uninstalling module A would make the database crash because the algorithm would look for an uninstalled model during the Registry reinitialization. i.e. Install project and base_action_rule, create a base_action_rule depending on model project.task, try to uninstall Project -> BOOM! This is fixed by checking if the model obtained is None, in which case we log a warning (for cleanup) and skip to the next iteration (continue) opw-777301
Diffstat (limited to 'odoo/sql_db.py')
0 files changed, 0 insertions, 0 deletions