[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:
Olivier Ligot 2011-02-14 16:20:36 +01:00
parent fbfa318e86
commit 8694b90609
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class base_synchro(osv.osv_memory):
start_date = time.strftime('%Y-%m-%d, %Hh %Mm %Ss')
syn_obj = self.browse(cr, uid, ids, context=context)[0]
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:
dt = time.strftime('%Y-%m-%d %H:%M:%S')
self.synchronize(cr, uid, server, object, context)