diff options
| author | TWA <twa@odoo.com> | 2018-08-06 09:23:40 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-10-09 11:28:00 +0000 |
| commit | 983c7e81529eb26a7a756e7d875b5638a26a3733 (patch) | |
| tree | 102dcb58f7b2e42e30ee3218ecce8849cf1dbb65 /addons/mail/data/mail_data.xml | |
| parent | a799b1329297c7a5fee84fe772e85d22cbf2c5fc (diff) | |
[IMP] mail,crm,...: Replace occurences of name_get()[0][1] by display_name
Purpose
=======
display_name is equal to doing name_get()[0][1]
Replacing name_get()[0][1] by display_name could be good for 2 things:
- Uniformization of the code
- Probable optimization if name_get is used inside a for loop on a recordset (as the values will be prefetched and put in the cache).
TaskID: 1849250
closes odoo/odoo#26341
Diffstat (limited to 'addons/mail/data/mail_data.xml')
| -rw-r--r-- | addons/mail/data/mail_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index a664838b5a9..655943539da 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -298,7 +298,7 @@ <template id="message_user_assigned"> <p style="margin: 0px;"> <span>Dear <t t-esc="object.user_id.name"/>,</span><br /> - <span style="margin-top: 8px;">You have been assigned to the <t t-esc="object._description.lower()"/> <t t-esc="object.name_get()[0][1]"/>.</span> + <span style="margin-top: 8px;">You have been assigned to the <t t-esc="object._description.lower()"/> <t t-esc="object.display_name"/>.</span> </p> <p style="margin-top: 24px; margin-bottom: 16px;"> <a t-att-href="'/mail/view?model=%s&res_id=%s' % (object._name, object.id)" style="background-color:#875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px;"> |
