From 96ed63b84a78faf8fc62031059cd532b088a63bb Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 23 Jul 2008 13:30:21 +0200 Subject: [PATCH] bugfix: original constraint message is showed when there is no translations bzr revid: christophe@tinyerp.com-20080723113021-7jgz9j99imrcokxh --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))