[FIX] fields: change exception type (bug found because of missing import)
This commit is contained in:
+1
-1
@@ -505,7 +505,7 @@ class Field(object):
|
||||
|
||||
# check type consistency
|
||||
if self.type != field.type:
|
||||
raise UserError(_("Type of related field %s is inconsistent with %s") % (self, field))
|
||||
raise TypeError("Type of related field %s is inconsistent with %s" % (self, field))
|
||||
|
||||
# determine dependencies, compute, inverse, and search
|
||||
self.depends = ('.'.join(self.related),)
|
||||
|
||||
Reference in New Issue
Block a user