I created a module in Openerp, and it has the following file:
http://pastebin.com/91RLuTQh
and it works, i put the _start_syncro method into the sheduler, but whenever i tries to run it gives a strange error:
2013-02-04 10:01:40,658 6788 ERROR nagel_test openerp.addons.base.ir.ir_cron: Call of self.pool.get('res.partner')._start_syncro(cr, uid, *()) failed in Job 6
Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/base/ir/ir_cron.py", line 132, in _callback
method(cr, uid, *args)
File "/opt/openerp/server/openerp/addons/panda_partner/partner.py", line 57, in _start_syncro
csvrow[4] = csvrow[4].decode("utf-8")
IndexError: list index out of range
And whatever i do, it will always drop an error at line 57 exactly!
I dont know why.
Found my Error: Seems like simply upgrading my module inside Openerp isn’t enough. I need a full restart so my actual modification to work…