Bugfix: _inherits

bzr revid: jvo@tinyerp.com-20080903111429-8t4rdyzf3mr28etk
This commit is contained in:
Jay Vora 2008-09-03 16:44:29 +05:30
parent 8ae5a06e35
commit 14b5737dec
1 changed files with 2 additions and 2 deletions

View File

@ -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)