summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorAnh Thao Pham (pta) <pta@odoo.com>2020-07-31 07:00:45 +0000
committerAnh Thao Pham (pta) <pta@odoo.com>2020-08-06 15:07:11 +0000
commit637232a8c9f663c01c129d67854f50ab9e3059f3 (patch)
tree7ce60ff4a55c74c72c06cc567738e4ff85cc0404 /addons/web/static/src/js/fields/basic_fields.js
parenta2ed3bda2ecddd8dcd890240576d0d6908148f63 (diff)
[FIX] base_vat: fixes format of Switzerland VAT
- Install Contacts and Belgium - Accounting (l10n_be) - Go to Contacts and create a new Contact: * Select Switzerland as Country * Enter "CHE-123.456.788 TVA" ad VAT The VAT is auto-updated to "CHE123456788TVA", removing all special characters. The entered VAT is converted to its minimal representation, stripping whitespaces and seperators. And it is this compacted value that is stored. As defined here (https://www.estv.admin.ch/estv/fr/home/mehrwertsteuer/fachinformationen/steuerpflicht/unternehmens-identifikationsnummer--uid-.html), the Swiss VAT format should be CHE-XXX.XXX.XXX TVA. Therefore, the VAT will be automatically formated to the official format. opw-2291581 closes odoo/odoo#55582 X-original-commit: d75614e22f5b0b72e6bebd9cafba36fe32b9eb51 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions