diff --git a/openerp/fields.py b/openerp/fields.py index ad559090d00..47eb5771d6f 100644 --- a/openerp/fields.py +++ b/openerp/fields.py @@ -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),)