[FIX] point_of_sale: missing currency symbol on receipts

- Buy anything with de POS and generate a receipt.

Before this commit:

The currency symbol is missing everywhere.

After this commit:

The currency symbol is present next to any price.

closes odoo/odoo#38970

Opw: 2083186
X-original-commit: e6528dd8ac202a66103e00c08c2246f6083ebf51
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Florimond Husquinet (fhu)
2019-10-17 15:35:46 +00:00
committed by fw-bot
parent ee2f30fba2
commit 3a0acf329b
+4 -4
View File
@@ -975,7 +975,7 @@
<t t-if='!taxincluded'>
<div class="pos-receipt-right-align">--------</div>
<br/>
<div>Subtotal<span t-esc='widget.format_currency_no_symbol(receipt.subtotal)' class="pos-receipt-right-align"/></div>
<div>Subtotal<span t-esc='widget.format_currency(receipt.subtotal)' class="pos-receipt-right-align"/></div>
<t t-foreach='receipt.tax_details' t-as='tax'>
<div>
<t t-esc='tax.name' />
@@ -989,7 +989,7 @@
<br/>
<div class="pos-receipt-amount">
TOTAL
<span t-esc='widget.format_currency_no_symbol(receipt.total_with_tax)' class="pos-receipt-right-align"/>
<span t-esc='widget.format_currency(receipt.total_with_tax)' class="pos-receipt-right-align"/>
</div>
<br/><br/>
@@ -1005,7 +1005,7 @@
<div class="pos-receipt-amount receipt-change">
CHANGE
<span t-esc='widget.format_currency_no_symbol(receipt.change)' class="pos-receipt-right-align"/>
<span t-esc='widget.format_currency(receipt.change)' class="pos-receipt-right-align"/>
</div>
<br/>
@@ -1026,7 +1026,7 @@
</t>
<div>
Total Taxes
<span t-esc='widget.format_currency_no_symbol(receipt.total_tax)' class="pos-receipt-right-align"/>
<span t-esc='widget.format_currency(receipt.total_tax)' class="pos-receipt-right-align"/>
</div>
</t>