summaryrefslogtreecommitdiff
path: root/addons/website_mail/models/update.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-06-30 14:40:03 +0200
committerThibault Delavallée <tde@openerp.com>2015-07-01 10:58:20 +0200
commitc128ddf827bc7da0be1b9901ebc6a4c3a2268ed8 (patch)
tree8a57a0e78c017cefa28ca41f196460659a297125 /addons/website_mail/models/update.py
parent3ae0ce43d4bc0c4f82f2c394ff1b8c95d8a26cc6 (diff)
[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.
Diffstat (limited to 'addons/website_mail/models/update.py')
-rw-r--r--addons/website_mail/models/update.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/website_mail/models/update.py b/addons/website_mail/models/update.py
new file mode 100644
index 00000000000..924d30027c1
--- /dev/null
+++ b/addons/website_mail/models/update.py
@@ -0,0 +1,10 @@
+# -*- 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