diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-09-25 10:13:12 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-09-29 14:34:44 +0000 |
| commit | bfe3a127f5535e11cc87ebd0fff4a5cfe5039a23 (patch) | |
| tree | 02a1aa813be5fdd5f89d4624f2764bf0031c072c /addons/point_of_sale/static/src/js/models.js | |
| parent | a8c847808ca624614becc2958bcc13f4739eee24 (diff) | |
[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/odoo#58831
X-original-commit: 652e240901a052ed612f91620bdab3cbd5608e3f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/point_of_sale/static/src/js/models.js')
| -rw-r--r-- | addons/point_of_sale/static/src/js/models.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 6914cd46568..8f2b5013442 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -2789,7 +2789,7 @@ exports.Order = Backbone.Model.extend({ company_registry: company.company_registry, contact_address: company.partner_id[1], vat: company.vat, - vat_label: company.country && company.country.vat_label || '', + vat_label: company.country && company.country.vat_label || _t('Tax ID'), name: company.name, phone: company.phone, logo: this.pos.company_logo_base64, |
