Skip to content
Browse files

[FIX] add more information

  • Loading branch information...
fmdl committed Mar 15, 2019
1 parent 9a8f59a commit adb136e2c186adf2fc50ef2c170026acdaffebd2
Showing with 4 additions and 1 deletion.
  1. +4 −1 odoo/
@@ -524,7 +524,10 @@ 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:
field = target._fields[name]
field = target._fields.get(name, None)
if field is None:
raise KeyError("Wrong related field, '%s', relation : '%s', this field doesn't exist : '%s'"
% (self, '.'.join(self.related), name))
target = target[name]

0 comments on commit adb136e

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