Skip to content

Commit

Permalink
Merge pull request #2069 from Eficent/12.0-fix-openupgrade-do-not-del…
Browse files Browse the repository at this point in the history
…ete-xmlids

[12.0][IMP] OpenUpgrade: don't delete xmlids linked to nothing
  • Loading branch information
pedrobaeza committed Oct 25, 2019
2 parents d7a37c0 + 93d0f7e commit aeb73c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions odoo/addons/base/models/ir_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,9 @@ def _process_end(self, modules):
res_id, model)
# /OpenUpgrade
else:
# OpenUpgrade: don't delete xmlids. Use database_cleanup instead
continue
# /OpenUpgrade
bad_imd_ids.append(id)
if bad_imd_ids:
self.browse(bad_imd_ids).unlink()
Expand Down

0 comments on commit aeb73c3

Please sign in to comment.