Files
odoo_source/addons/website_mail/models/update.py
T
Thibault Delavallée c128ddf827 [FIX] website: remove unnecessary dependency from website
to mail. The only use was to update a method of publisher_warranty.contract
model that is defined in mail.

This code has been moved to the bridge module between website and mail
aka website_mail.

Dependency to share has also been removed.
2015-07-01 10:58:20 +02:00

11 lines
325 B
Python

# -*- coding: utf-8 -*-
from openerp.models import AbstractModel
class publisher_warranty_contract(AbstractModel):
_inherit = "publisher_warranty.contract"
def _get_message(self, cr, uid):
msg = super(publisher_warranty_contract, self)._get_message(cr, uid)
msg['website'] = True
return msg