summaryrefslogtreecommitdiff
path: root/addons/google_calendar/controllers
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-03-25 14:21:50 +0100
committerLucas Lefèvre <lul@odoo.com>2020-04-09 10:59:34 +0200
commit1a9be3a8699df6422b4e1fe2d91cbbec48fae9de (patch)
treee703f821c33fd33473e65f7c61640f4e2acf52e0 /addons/google_calendar/controllers
parentf2b69186499f7288af6d129986ad3d9d92b010c6 (diff)
[REF] calendar: Lint + Clean code
Diffstat (limited to 'addons/google_calendar/controllers')
-rw-r--r--addons/google_calendar/controllers/main.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/google_calendar/controllers/main.py b/addons/google_calendar/controllers/main.py
index 465b0fa48b0..76326eb9d85 100644
--- a/addons/google_calendar/controllers/main.py
+++ b/addons/google_calendar/controllers/main.py
@@ -10,9 +10,12 @@ class GoogleCalendarController(http.Controller):
@http.route('/google_calendar/sync_data', type='json', auth='user')
def sync_data(self, model, **kw):
- """ This route/function is called when we want to synchronize Odoo calendar with Google Calendar
- Function return a dictionary with the status : need_config_from_admin, need_auth, need_refresh, success if not calendar_event
- The dictionary may contains an url, to allow Odoo Client to redirect user on this URL for authorization for example
+ """ This route/function is called when we want to synchronize Odoo
+ calendar with Google Calendar.
+ Function return a dictionary with the status : need_config_from_admin, need_auth,
+ need_refresh, success if not calendar_event
+ The dictionary may contains an url, to allow Odoo Client to redirect user on
+ this URL for authorization for example
"""
if model == 'calendar.event':
GoogleCal = GoogleCalendarService(request.env['google.service'])