Files
odoo_source/addons/website_mail/models/update.py
T
Keyur Gajjar 30f48eb6b6 [MIG] website_mail: code migration to new api
No functional changes, only rewrite the code with
the api.v8 which more pythonic and smooth.
2016-04-13 11:20:53 +02:00

15 lines
392 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class PublisherWarrantyContract(models.AbstractModel):
_inherit = "publisher_warranty.contract"
@api.model
def _get_message(self):
msg = super(PublisherWarrantyContract, self)._get_message()
msg['website'] = True
return msg