diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-05-02 18:53:44 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-05-02 18:53:44 +0200 |
| commit | bf7de4d32ff30dd8b322d6c9c2cf2e9feb302e6f (patch) | |
| tree | bdb67554300b520e41fec6dc32107d4b90156e40 /addons/sale/data/mail_template_data.xml | |
| parent | a97cb66961a77e9e3efb6de0d852e93f57afc350 (diff) | |
| parent | 3f6bb0f544d5bdd102eb06fbc7d5aa9095efc235 (diff) | |
[MERGE] forward port branch saas-15 up to 3f6bb0f544d
Diffstat (limited to 'addons/sale/data/mail_template_data.xml')
| -rw-r--r-- | addons/sale/data/mail_template_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale/data/mail_template_data.xml b/addons/sale/data/mail_template_data.xml index 72b2dae500c..23eaa72eac3 100644 --- a/addons/sale/data/mail_template_data.xml +++ b/addons/sale/data/mail_template_data.xml @@ -18,7 +18,7 @@ % set access_action = object.with_context(force_website=True).get_access_action() % set is_online = access_action and access_action['type'] == 'ir.actions.act_url' % set doc_name = 'quotation' if object.state in ('draft', 'sent') else 'order confirmation' -% set access_name = is_online and object.template_id and 'Accept and pay %s online' % doc_name or 'View %s' % doc_name +% set access_name = is_online and object.template_id and doc_name == 'quotation' and 'Accept and pay %s online' % doc_name or 'View %s' % doc_name % set access_url = is_online and '/mail/view?model=sale.order&res_id=%d' % (object.id) or '' % if object.partner_id.parent_id: |
