diff options
| author | Raphael Collet <rco@openerp.com> | 2016-08-12 09:36:25 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-08-16 09:55:46 +0200 |
| commit | ffdafd3f8a6a18f2af9d5aa7f2446c299cb71967 (patch) | |
| tree | de82f81db7be5b64f9f4226aea31048f2089bf74 /addons/mail | |
| parent | 856f2e87e645db697a67fc85caae07bf0fe11d3f (diff) | |
[REM] most uses of `_model` (useless in most cases)
Diffstat (limited to 'addons/mail')
| -rw-r--r-- | addons/mail/models/mail_thread.py | 2 | ||||
| -rw-r--r-- | addons/mail/views/mail_templates.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 3e07a89594b..e88024b17fc 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -763,7 +763,7 @@ class MailThread(models.AbstractModel): self.ensure_one() database_uuid = self.env['ir.config_parameter'].get_param('database.uuid') return {'headers': repr({ - 'X-Odoo-Objects': "%s-%s" % (self._model, self.id), + 'X-Odoo-Objects': "%s-%s" % (self._name, self.id), 'X-Odoo-db-uuid': database_uuid })} diff --git a/addons/mail/views/mail_templates.xml b/addons/mail/views/mail_templates.xml index a3aace7b85e..192486b6eaa 100644 --- a/addons/mail/views/mail_templates.xml +++ b/addons/mail/views/mail_templates.xml @@ -33,7 +33,7 @@ <template id="message_origin_link"> <p>This <t t-esc="self._description.lower()"/> has been <span t-if="edit">modified</span><span t-if="not edit">created</span> from: <t t-foreach="origin" t-as="o"> - <a href="#" t-att-data-oe-model="o._model" t-att-data-oe-id="o.id"> <t t-esc="o.name"/></a><span t-if="origin.ids[-1:] != o.ids">, </span> + <a href="#" t-att-data-oe-model="o._name" t-att-data-oe-id="o.id"> <t t-esc="o.name"/></a><span t-if="origin.ids[-1:] != o.ids">, </span> </t> </p> </template> |
