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 7abbc8ec96ef459668e86fbac1b4469b8a09a311
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', relation : '%s', this field doesn't exist : '%s'"
% (self, '.'.join(self.related), name))
field = target._fields[name]
target = target[name]

0 comments on commit 7abbc8e

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