Skip to content

Commit 63f200d

Browse files
committed
[FIX] point_of_sale: VAT label on receipt
- Set the company country to India - Open th POS, make a sale - Print the receipt The label for the VAT is 'VAT' while it should be 'GSTIN'. The `VAT:` label is hardcoded in the receipt template. It is expected to be adapted to the localization thanks to the translation. However, in this case it doesn't work: since we keep the English language, there is no translation applied. We use the country `vat_label` and fall back on the `VAT` string. opw-2343652 closes odoo#58579 X-original-commit: d679d12 Signed-off-by: Nicolas Martinelli (nim) <[email protected]>
1 parent 3179354 commit 63f200d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

addons/point_of_sale/i18n/point_of_sale.pot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4299,6 +4299,7 @@ msgstr ""
42994299

43004300
#. module: point_of_sale
43014301
#. openerp-web
4302+
#: code:addons/point_of_sale/static/src/js/models.js:0
43024303
#: code:addons/point_of_sale/static/src/xml/pos.xml:0
43034304
#: code:addons/point_of_sale/static/src/xml/pos.xml:0
43044305
#, python-format

addons/point_of_sale/static/src/js/models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,7 @@ exports.Order = Backbone.Model.extend({
25102510
company_registry: company.company_registry,
25112511
contact_address: company.partner_id[1],
25122512
vat: company.vat,
2513-
vat_label: company.country && company.country.vat_label || '',
2513+
vat_label: company.country && company.country.vat_label || _t('Tax ID'),
25142514
name: company.name,
25152515
phone: company.phone,
25162516
logo: this.pos.company_logo_base64,

addons/point_of_sale/static/src/xml/pos.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@
893893
<div>Tel:<t t-esc='receipt.company.phone' /></div>
894894
</t>
895895
<t t-if='receipt.company.vat'>
896-
<div>VAT:<t t-esc='receipt.company.vat' /></div>
896+
<div><t t-esc='receipt.company.vat_label'/>:<t t-esc='receipt.company.vat' /></div>
897897
</t>
898898
<t t-if='receipt.company.email'>
899899
<div><t t-esc='receipt.company.email' /></div>

0 commit comments

Comments
 (0)