You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
532 B

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