[IMP] orm: log underlying exception at DEBUG level when a constraint check raises

bzr revid: odo@openerp.com-20140130154100-rdr1n5u1aiz9cbk3
This commit is contained in:
Olivier Dony 2014-01-30 16:41:00 +01:00
parent 0428c00e2f
commit 79dc0235cd
1 changed files with 1 additions and 0 deletions

View File

@ -1549,6 +1549,7 @@ class BaseModel(object):
valid = fun(self, cr, uid, ids)
extra_error = None
except Exception, e:
_logger.debug('Exception while validating constraint', exc_info=True)
valid = False
extra_error = tools.ustr(e)
if not valid: