Cron import_odbc doesn't work

Bug #1186165 reported by David
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenObject Extension
New
Undecided
Daniel Reis

Bug Description

I have an import from a Mysql DB, but the automatic crons fails with the next error.

 2013-05-31 08:10:54,578 30568 ERROR ? openerp.addons.base.ir.ir_cron: Call of self.pool.get('import.odbc.dbtable').import_run(cr, uid, *()) failed in Job 16
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/base/ir/ir_cron.py", line 146, in _callback
    method(cr, uid, *args)
  File "/opt/openerp/server/openerp/addons/import_odbc/import_odbc.py", line 120, in import_run
    actions = self.read(cr, uid, ids, ['id', 'exec_order'])
  File "/opt/openerp/server/openerp/osv/orm.py", line 3415, in read
    select = map(lambda x: isinstance(x, dict) and x['id'] or x, select)
TypeError: argument 2 to map() must support iteration

The manual import works correctly.

Using this branch on 6.1 :

 http://bazaar.launchpad.net/~openerp-community/openobject-extension/import_odbc_base_external_dbsource/

revision: 357

Revision history for this message
René Glauser (rene-glauser) wrote :

Do you have already a solution for the cron-problem with import_odbc in V7 ?
Thanks René

Daniel Reis (dreis-pt)
Changed in openobject-extension:
assignee: nobody → Daniel Reis (dreis-pt)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.