From 23b65836f3b2b85e9a9ac2c9a6d7b0c7a1712126 Mon Sep 17 00:00:00 2001 From: bch <> Date: Wed, 17 Jan 2007 14:07:28 +0000 Subject: [PATCH] ORM : debug : error message on python constraints are now displayed correctly bzr revid: bch-5788b57099e7d45fa3d7b5758d24d4d2cf17b2a7 --- bin/osv/osv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/osv/osv.py b/bin/osv/osv.py index bc845a511fd..3915ea63c61 100644 --- a/bin/osv/osv.py +++ b/bin/osv/osv.py @@ -85,7 +85,8 @@ class osv_pool(netsvc.Service): res = getattr(obj,method)(cr, uid, *args, **kw) return res except orm.except_orm, inst: - self.abortResponse(1, inst.value[0], inst.name, inst.value[1]) + #self.abortResponse(1, inst.value[0], inst.name, inst.value[1]) + self.abortResponse(1, inst.value[0], 'warning', inst.value[1]) except except_osv, inst: self.abortResponse(1, inst.name, inst.exc_type, inst.value) except psycopg.IntegrityError, inst: