Skip to content

Commit

Permalink
[FIX] base: Don't fail upgrade when missing models
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Jun 7, 2021
1 parent 659a35e commit cd06971
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ def _process_end(self, modules):
"""Don't warn about upgrade conventions from Odoo
('fields should be explicitly removed by an upgrade script')
"""
patched_self = self.with_context(**{"missing_model": True})
with mute_logger("odoo.addons.base.models.ir_model"):
return IrModelData._process_end._original_method(self, modules)
return IrModelData._process_end._original_method(patched_self, modules)


_process_end._original_method = IrModelData._process_end
Expand Down

0 comments on commit cd06971

Please sign in to comment.