summaryrefslogtreecommitdiff
path: root/addons/sale/data/mail_data.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-08-03 13:59:14 +0200
committerThibault Delavallée <tde@odoo.com>2018-08-03 13:59:14 +0200
commitaeb381c06e82c828dec7b0fe939e55ba9c828d74 (patch)
tree6040ee8ba796731b62be47d8f5654708a4d170f0 /addons/sale/data/mail_data.xml
parentc4af8f95d0a447e9fc4e1f63d25cd88bca9e1abe (diff)
Revert "[FIX] mail, sale: button texts are translatable"
This reverts commit c4af8f95d0a447e9fc4e1f63d25cd88bca9e1abe. Break master, not tested, blocks other pending merges.
Diffstat (limited to 'addons/sale/data/mail_data.xml')
-rw-r--r--addons/sale/data/mail_data.xml10
1 files changed, 4 insertions, 6 deletions
diff --git a/addons/sale/data/mail_data.xml b/addons/sale/data/mail_data.xml
index 2e5b5f24553..b8e9b5fd637 100644
--- a/addons/sale/data/mail_data.xml
+++ b/addons/sale/data/mail_data.xml
@@ -61,12 +61,10 @@
<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-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>
+ <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"/>
</xpath>
</template>