diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-02-22 16:25:02 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-02-22 16:25:02 +0100 |
| commit | 0e7675847f05a63cf013210dabac82c94845217f (patch) | |
| tree | ae87ad0d0b4d792cb7a17ea1b5428b5d96ce8c56 /addons/mail/data | |
| parent | 1af67ffdfa370ade4ea12f227d7c4fae5bc02170 (diff) | |
| parent | 0f4abc5c228747c7eee79f820fa2ea9c23d73e5f (diff) | |
[MERGE] forward port branch saas-12.1 up to 0f4abc5c228
Diffstat (limited to 'addons/mail/data')
| -rw-r--r-- | addons/mail/data/mail_data.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index d1226711fd8..105cd650ac1 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -231,7 +231,9 @@ <td align="center" style="min-width: 590px;"> <t t-set="access_action" t-value="record.with_context(force_website=True).get_access_action()"/> <t t-set="is_online" t-value="access_action and access_action['type'] == 'ir.actions.act_url'"/> - <t t-set="access_url" t-value="is_online and record._get_share_url(redirect=True, signup_partner=True) or ''"/> + <t t-set="base_url" t-value="record.get_base_url()"/> + <t t-set="share_url" t-value="record._get_share_url(redirect=True, signup_partner=True)"/> + <t t-set="access_url" t-value="is_online and share_url and base_url + share_url or ''"/> <t t-set="access_name"> View <t t-esc="model_description or 'document'"/> </t> |
