Skip to content
Browse files

[IMP] base: add more information if wrong deps

  • Loading branch information...
fmdl committed Mar 19, 2019
1 parent 3cbb8d5 commit 1b7fcb34a5a5377381f93195a22daa4565fd22d0
Showing with 2 additions and 0 deletions.
  1. +2 −0 odoo/
@@ -705,6 +705,8 @@ def resolve_deps(self, model, path0=[], seen=frozenset()):
_logger.warning("Field %s depends on itself; please fix its decorator @api.depends().", self)
model, path = model0, path0
for fname in dotnames.split('.'):
if fname not in model._fields:
raise KeyError("Field : %s, wrong field '%s' of this deps : '%s'." % (self, fname, dotnames)
field = model._fields[fname]
result.append((model, field, path))
model = model0.env.get(field.comodel_name)

0 comments on commit 1b7fcb3

Please sign in to comment.
You can’t perform that action at this time.