rvalyi/ooor — Issue #78: Impossible to update ProductCategory
Author: YannickB
Created: 2012-01-20 13:43:26+00:00
State: open

Hi,

If we try to update a product.category, it throw the following error :

*********** OpenERP Server ERROR ***********
multiple assignments to same column "write_date"

Traceback (most recent call last):
File "/home/openerp_user/openerp/destock_prod/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/openerp_user/openerp/destock_prod/server/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/home/openerp_user/openerp/destock_prod/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp_user/openerp/destock_prod/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp_user/openerp/destock_prod/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp_user/openerp/destock_prod/server/bin/addons/magentoerpconnect/product.py", line 101, in write
return super(product_category, self).write(cr, uid, ids, vals, context)
File "/home/openerp_user/openerp/destock_prod/server/bin/osv/orm.py", line 3410, in write
'where id IN %s', upd1 + [sub_ids])
File "/home/openerp_user/openerp/destock_prod/server/bin/sql_db.py", line 78, in wrapper
return f(self, *args, **kwargs)
File "/home/openerp_user/openerp/destock_prod/server/bin/sql_db.py", line 131, in execute
res = self._obj.execute(query, params)
ProgrammingError: multiple assignments to same column "write_date"

********************************************

Create a product.category work correctly. Also this don't happen with any other object, tested with res.partner and res.partner.category.