From c90140c3b29d4d4eabe2b3d349bb758ac263f0b3 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Fri, 2 Jan 2009 15:09:03 +0100 Subject: [PATCH] bugfix bzr revid: fp@tinyerp.com-20090102140903-jz4szuojasx9f5zg --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 9ebf1444340..0533487ae83 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -2140,7 +2140,7 @@ class orm(orm_template): totranslate = context.get('lang', False) and (context['lang'] != 'en_US') for field in vals: if field in self._columns: - if self._columns[field]._classic_write: + if self._columns[field]._classic_write and not (hasattr(self._columns[field], '_fnct_inv')): if (not totranslate) or not self._columns[field].translate: upd0.append('"'+field+'"='+self._columns[field]._symbol_set[0]) upd1.append(self._columns[field]._symbol_set[1](vals[field]))