diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-10-01 08:48:11 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-10-05 11:56:05 +0200 |
| commit | 2d5d2f0fe628f60901eb7d297b6cf44b4ca0be04 (patch) | |
| tree | 97dbbfdd915be968209e59ebcd09dae82ba24966 | |
| parent | f12e1c26e9998d2f2c7093135f57b6e31467725a (diff) | |
[FIX] mail: template used for notification
| -rw-r--r-- | addons/mail/models/res_partner.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/mail/models/res_partner.py b/addons/mail/models/res_partner.py index 928140ba526..fa24fb9055f 100644 --- a/addons/mail/models/res_partner.py +++ b/addons/mail/models/res_partner.py @@ -134,12 +134,11 @@ class Partner(models.Model): return True # existing custom notification email + base_template = None if message.model: base_template = self.env.ref('mail.mail_template_data_notification_email_%s' % message.model.replace('.', '_'), raise_if_not_found=False) - if base_template: - # do something custom - pass - base_template = self.env.ref('mail.mail_template_data_notification_email_default') + if not base_template: + base_template = self.env.ref('mail.mail_template_data_notification_email_default') base_template_ctx = self._notify_prepare_template_context(message) if not user_signature: |
