publisher_warranty_contract.py 440 B

12345678910111213
  1. # Copyright (C) 2013 Therp BV (<http://therp.nl>).
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  3. from odoo import models
  4. from odoo.release import version_info
  5. class PublisherWarrantyContract(models.AbstractModel):
  6. _inherit = "publisher_warranty.contract"
  7. def update_notification(self, cron_mode=True):
  8. if version_info[5] == "e":
  9. return super().update_notification(cron_mode=cron_mode)