bugfix
authorFabien Pinckaers <fp@tinyerp.com>
Fri, 2 Jan 2009 14:09:03 +0000 (15:09 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Fri, 2 Jan 2009 14:09:03 +0000 (15:09 +0100)
bzr revid: fp@tinyerp.com-20090102140903-jz4szuojasx9f5zg

bin/osv/orm.py

index 9ebf144..0533487 100644 (file)
@@ -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]))