From 6d25a1a18a1b45c4faed0f4ba644259ec4f11893 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 18 May 2015 14:17:20 +0200 Subject: [PATCH] [FIX] google_calendar: sync date on event date change Set the record update time when the date is changed via another view than calendar view. So when an synchronization is done, the update is taken into account when updating calendar from the odoo to google. closes #6752 opw-634674 --- addons/google_calendar/google_calendar.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py index 31e2dc8210d..32c030b6ea8 100644 --- a/addons/google_calendar/google_calendar.py +++ b/addons/google_calendar/google_calendar.py @@ -976,7 +976,9 @@ class calendar_event(osv.Model): _inherit = "calendar.event" def get_fields_need_update_google(self, cr, uid, context=None): - return ['name', 'description', 'allday', 'date', 'date_end', 'stop', 'attendee_ids', 'alarm_ids', 'location', 'class', 'active'] + return ['name', 'description', 'allday', 'start', 'date_end', 'stop', + 'attendee_ids', 'alarm_ids', 'location', 'class', 'active', + 'start_date', 'start_datetime', 'stop_date', 'stop_datetime'] def write(self, cr, uid, ids, vals, context=None): if context is None: