[FIX] pos_coupon: translate fallback

Translatable expressions need to be in an xml tag, not inline

X-original-commit: 65584e569fdf59978c0579de9936fc15a90956e1
Part-of: odoo/odoo#78259
This commit is contained in:
Martin Trigaux
2021-10-14 09:28:07 +00:00
parent 8ee1690bb7
commit c5db9e8aac
2 changed files with 15 additions and 3 deletions
+9 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-05 10:53+0000\n"
"PO-Revision-Date: 2021-10-05 10:53+0000\n"
"POT-Creation-Date: 2021-10-08 06:19+0000\n"
"PO-Revision-Date: 2021-10-08 06:19+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -442,3 +442,10 @@ msgstr ""
#: model:mail.template,name:pos_coupon.mail_coupon_template
msgid "[POS] Coupon: Send by Email"
msgstr ""
#. module: pos_coupon
#. openerp-web
#: code:addons/pos_coupon/static/src/xml/OrderReceipt.xml:0
#, python-format
msgid "no expiration"
msgstr ""
@@ -17,7 +17,12 @@
</div>
<div>
<span>Valid until: </span>
<t t-esc="coupon_info['expiration_date'] ? coupon_info['expiration_date'] : 'no expiration'"/>
<t t-if="coupon_info['expiration_date']">
<t t-esc="coupon_info['expiration_date']"/>
</t>
<t t-else="">
no expiration
</t>
</div>
<div>
<img t-att-src="'/report/barcode/Code128/'+coupon_info['code']" style="width:200px;height:50px" alt="Barcode"/>