[FIX] Pass wrong id when calling browse on object base.synchro.server
bzr revid: olivier.ligot@groupes.be-20110214152036-54fezsfxhjnuubsj
This commit is contained in:
parent
fbfa318e86
commit
8694b90609
|
@ -216,7 +216,7 @@ class base_synchro(osv.osv_memory):
|
||||||
start_date = time.strftime('%Y-%m-%d, %Hh %Mm %Ss')
|
start_date = time.strftime('%Y-%m-%d, %Hh %Mm %Ss')
|
||||||
syn_obj = self.browse(cr, uid, ids, context=context)[0]
|
syn_obj = self.browse(cr, uid, ids, context=context)[0]
|
||||||
pool = pooler.get_pool(cr.dbname)
|
pool = pooler.get_pool(cr.dbname)
|
||||||
server = pool.get('base.synchro.server').browse(cr, uid, ids, context=context)[0]
|
server = pool.get('base.synchro.server').browse(cr, uid, syn_obj.server_url.id, context=context)
|
||||||
for object in server.obj_ids:
|
for object in server.obj_ids:
|
||||||
dt = time.strftime('%Y-%m-%d %H:%M:%S')
|
dt = time.strftime('%Y-%m-%d %H:%M:%S')
|
||||||
self.synchronize(cr, uid, server, object, context)
|
self.synchronize(cr, uid, server, object, context)
|
||||||
|
|
Loading…
Reference in New Issue