From 125ec28e71ea110ce574852c7f073a1d81fa26e9 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Mon, 29 Jun 2015 12:23:16 +0200 Subject: [PATCH] [FIX] fields: change exception type (bug found because of missing import) --- openerp/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),)