diff options
| author | Raphael Collet <rco@openerp.com> | 2015-06-29 12:23:16 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-06-29 12:23:16 +0200 |
| commit | 125ec28e71ea110ce574852c7f073a1d81fa26e9 (patch) | |
| tree | abf381208555d112c3663e1a21004bdc680cefa0 | |
| parent | 32c7f1e48d7aae18c53c17919342ab601dbc5dd7 (diff) | |
[FIX] fields: change exception type (bug found because of missing import)
| -rw-r--r-- | openerp/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
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),) |
