[FIX] google_calendar: add missing parameter to logger_info
authorJeremy Kersten <jke@odoo.com>
Mon, 6 Oct 2014 12:32:28 +0000 (14:32 +0200)
committerJeremy Kersten <jke@odoo.com>
Mon, 6 Oct 2014 12:32:28 +0000 (14:32 +0200)
addons/google_calendar/controllers/main.py
addons/google_calendar/google_calendar.py

index 63034e5..1f30713 100644 (file)
@@ -40,7 +40,7 @@ class google_calendar_controller(http.Controller):
                 }
 
             # If App authorized, and user access accepted, We launch the synchronization
-            return gc_obj.synchronize_events(request.cr, request.uid, [request.uid], context=kw.get('local_context'))
+            return gc_obj.synchronize_events(request.cr, request.uid, [], context=kw.get('local_context'))
 
         return {"status": "success"}
 
index cffc274..03a311d 100644 (file)
@@ -510,7 +510,7 @@ class google_calendar(osv.AbstractModel):
                 else:
                     _logger.info("[%s] Calendar Synchro - Done with status : %s  !" % (user_to_sync, resp.get("status")))
             except Exception, e:
-                _logger.info("[%s] Calendar Synchro - Exception : %s !" % exception_to_unicode(e))
+                _logger.info("[%s] Calendar Synchro - Exception : %s !" % (user_to_sync, exception_to_unicode(e)))
         _logger.info("Calendar Synchro - Ended by cron")
 
     def synchronize_events(self, cr, uid, ids, lastSync=True, context=None):