Skip to content

Commit

Permalink
fixup! fixup! fixup! optimizegit stgit stgit stgit stgit st
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Torres committed Jul 20, 2018
1 parent 2bce2a3 commit 0600be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/addons/base/ir/ir_model.py
Expand Up @@ -555,7 +555,7 @@ def _prepare_update(self):
failed_dependencies.append((field, dependant))
for inverse in model._field_inverses.get(field, ()):
if inverse.manual and inverse.type == 'one2many':
failed_dependencies.append((field, dependant))
failed_dependencies.append((field, inverse))

if not self._context.get(MODULE_UNINSTALL_FLAG) and failed_dependencies:
msg = _("The field '%s' cannot be removed because the field '%s' depends on it.")
Expand Down

0 comments on commit 0600be2

Please sign in to comment.