def _google_patch(self, google_service: GoogleCalendarService, google_id, values, timeout=TIMEOUT): with google_calendar_token(self.env.user.sudo()) as token: if token: try: google_service.patch(google_id, values, token=token, timeout=timeout) except HTTPError as e: if e.response.status_code in (400, 403): self._google_error_handling(e) self.need_sync = False
def _google_patch(self, google_service: GoogleCalendarService, google_id, values, timeout=TIMEOUT): with google_calendar_token(self.env.user.sudo()) as token: if token: google_service.patch(google_id, values, token=token, timeout=timeout) self.need_sync = False