[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:
parent
0428c00e2f
commit
79dc0235cd
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue