diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py index fcd7d6af597..fbfaf2f2ba4 100644 --- a/addons/google_calendar/google_calendar.py +++ b/addons/google_calendar/google_calendar.py @@ -710,7 +710,7 @@ class crm_meeting(osv.osv): _columns = { 'oe_update_date': fields.datetime('OpenERP Update Date'), } - _sql_constraints = [('google_id_uniq','unique(google_internal_event_id)', 'Google ID must be unique!')] + # If attendees are updated, we need to specify that next synchro need an action class calendar_attendee(osv.osv): _inherit = 'calendar.attendee' @@ -720,6 +720,8 @@ class calendar_attendee(osv.osv): 'oe_synchro_date': fields.datetime('OpenERP Synchro Date'), } + _sql_constraints = [('google_id_uniq','unique(google_internal_event_id)', 'Google ID must be unique!')] + def write(self, cr, uid, ids, vals, context=None): if context is None: context = {} diff --git a/addons/google_calendar/google_calendar.pyc b/addons/google_calendar/google_calendar.pyc index dc0fd0c1df8..10b5741e544 100644 Binary files a/addons/google_calendar/google_calendar.pyc and b/addons/google_calendar/google_calendar.pyc differ