odoo18/addons/google_calendar/models/calendar_alarm_manager.py

14 lines
401 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
from odoo.tools import SQL
class AlarmManager(models.AbstractModel):
_inherit = 'calendar.alarm_manager'
@api.model
def _get_notify_alert_extra_conditions(self):
base = super()._get_notify_alert_extra_conditions()
return SQL("%s AND event.google_id IS NULL", base)