diff options
| author | Fabien Pinckaers <fp@openerp.com> | 2018-08-03 13:39:15 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@openerp.com> | 2018-08-03 13:39:15 +0200 |
| commit | c4af8f95d0a447e9fc4e1f63d25cd88bca9e1abe (patch) | |
| tree | 95f588720a0a627d3f82331e9766ae1c942f5ed5 /addons/sale/data/mail_data.xml | |
| parent | 31497ee79e3372fb84a2f60b6df2cbf2d709c23e (diff) | |
[FIX] mail, sale: button texts are translatable
[IMP] mail: improve email templates and simplify DOM
Diffstat (limited to 'addons/sale/data/mail_data.xml')
| -rw-r--r-- | addons/sale/data/mail_data.xml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/sale/data/mail_data.xml b/addons/sale/data/mail_data.xml index b8e9b5fd637..2e5b5f24553 100644 --- a/addons/sale/data/mail_data.xml +++ b/addons/sale/data/mail_data.xml @@ -61,10 +61,12 @@ <t t-set="access_code" t-value="(record._name == 'sale.order' and record.state in ('draft', 'sent') and record.get_portal_confirmation_action()) or access_code"/> </xpath> <xpath expr="//t[@t-set='access_name']" position="after"> - <t t-set="access_name" t-value=" -(record._name == 'sale.order' and access_code == 'sign' and record.has_to_be_paid() and 'Sign and pay online') or -(record._name == 'sale.order' and access_code != 'view' and 'Accept and sign online') or -access_name"/> + <t t-if="record._name == 'sale.order' and access_code != 'view'"> + <t t-set="access_name">Accept and sign online</t> + </t> + <t t-if="record._name == 'sale.order' and access_code == 'sign' and record.has_to_be_paid()"> + <t t-set="access_name">Sign and pay online</t> + </t> </xpath> </template> |
