diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py index 0616a87d331..a20143aff85 100644 --- a/addons/google_calendar/google_calendar.py +++ b/addons/google_calendar/google_calendar.py @@ -84,8 +84,8 @@ class SyncEvent(object): def compute_OP(self, modeFull=True): #If event are already in Gmail and in OpenERP - is_owner = self.OE.event.env.user.id == self.OE.event.user_id.id if self.OE.found and self.GG.found: + is_owner = self.OE.event.env.user.id == self.OE.event.user_id.id #If the event has been deleted from one side, we delete on other side ! if self.OE.status != self.GG.status and is_owner: self.OP = Delete((self.OE.status and "OE") or (self.GG.status and "GG"),