[FIX] fields: change exception type (bug found because of missing import)

This commit is contained in:
Raphael Collet
2015-06-29 12:23:16 +02:00
parent 32c7f1e48d
commit 125ec28e71
+1 -1
View File
@@ -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),)