diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2008-07-23 13:30:21 +0200 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2008-07-23 13:30:21 +0200 |
| commit | 96ed63b84a78faf8fc62031059cd532b088a63bb (patch) | |
| tree | 0152385fa0b26a9c180c4c2292ae82a80379aed4 /bin | |
| parent | 692c4d97b31f49ba69057ca5b225f94a1f8f2afe (diff) | |
bugfix: original constraint message is showed when there is no translations
bzr revid: christophe@tinyerp.com-20080723113021-7jgz9j99imrcokxh
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/osv/orm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 789d2fa27f8..3fdaddfa92c 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -635,7 +635,7 @@ class orm_template(object): fun, msg, fields = constraint if not fun(self, cr, uid, ids): field_error += fields - field_err_str.append( trans._get_source(cr, uid, self._name, 'constraint', lng, source=msg) ) + field_err_str.append( trans._get_source(cr, uid, self._name, 'constraint', lng, source=msg) or msg ) if len(field_err_str): cr.rollback() raise except_orm('ValidateError', ('\n'.join(field_err_str), ','.join(field_error))) |
