bzr revid: fp@tinyerp.com-20090102140903-jz4szuojasx9f5zg
This commit is contained in:
Fabien Pinckaers
2009-01-02 15:09:03 +01:00
parent 7daaba4be1
commit c90140c3b2
+1 -1
View 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]))