Browse Source

[FIX] datetime.datetime

pull/463/head
Luis Felipe Mileo 9 years ago
committed by Hendrix Costa
parent
commit
e5121957ef
  1. 2
      import_odbc/import_odbc.py

2
import_odbc/import_odbc.py

@ -167,7 +167,7 @@ class import_odbc_dbtable(orm.Model):
if obj.last_sync: if obj.last_sync:
sync = datetime.strptime(obj.last_sync, "%Y-%m-%d %H:%M:%S") sync = datetime.strptime(obj.last_sync, "%Y-%m-%d %H:%M:%S")
else: else:
sync = datetime.datetime(1900, 1, 1, 0, 0, 0)
sync = datetime(1900, 1, 1, 0, 0, 0)
params = {'sync': sync} params = {'sync': sync}
res = db_model.execute(cr, uid, [obj.dbsource_id.id], res = db_model.execute(cr, uid, [obj.dbsource_id.id],
obj.sql_source, params, metadata=True) obj.sql_source, params, metadata=True)

Loading…
Cancel
Save