From 14b5737dece65ea18de729e73355d4e415ccd802 Mon Sep 17 00:00:00 2001 From: Jay Vora Date: Wed, 3 Sep 2008 16:44:29 +0530 Subject: [PATCH] Bugfix: _inherits bzr revid: jvo@tinyerp.com-20080903111429-8t4rdyzf3mr28etk --- bin/osv/orm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 4dc5cb72ed7..c02f0b8064f 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -644,7 +644,7 @@ class orm_template(object): translated_msg = trans._get_source(cr, uid, self._name, 'constraint', lng, source=msg) or msg error_msgs.append( _("Error occur when validation the fields %s: %s") % (','.join(fields), translated_msg) - ) + ) if error_msgs: cr.rollback() raise except_orm('ValidateError', '\n'.join(error_msgs)) @@ -1753,7 +1753,7 @@ class orm(orm_template): for record in res: record.update(res3[record[col]]) - if col not in fields: + if col not in fields_to_read: del record[col] # all fields which need to be post-processed by a simple function (symbol_get)