Skip to content
Browse files

[FIX] base: add more information if wrong related field

  • Loading branch information...
fmdl committed Mar 18, 2019
1 parent 9a8f59a commit 59af791e862fa8f38583262a8ae39ec791e43ab3
Showing with 3 additions and 0 deletions.
  1. +3 −0 odoo/
@@ -524,6 +524,9 @@ def _setup_related_full(self, model):
# determine the chain of fields, and make sure they are all set up
target = model
for name in self.related:
if name not in target._fields:
raise KeyError("Field : '%s', this field '%s' of '%s' doesn't exist."
% (self, name, '.'.join(self.related)))
field = target._fields[name]
target = target[name]

0 comments on commit 59af791

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