- Aug 20, 2023
-
-
Odoo Translation Bot authored
-
- Aug 13, 2023
-
-
Odoo Translation Bot authored
-
- Jun 04, 2023
-
-
Odoo Translation Bot authored
-
- Apr 30, 2023
-
-
Odoo Translation Bot authored
-
- Apr 23, 2023
-
-
Odoo Translation Bot authored
-
- Apr 09, 2023
-
-
Odoo Translation Bot authored
-
- Mar 23, 2023
-
-
Andrea Grazioso (agr-odoo) authored
Register a ph contact with vat 123-456-789-012 Validation Error will raise Currently we use check the PH vat against regexp \d{3}-\d{3}-\d{3}-\d{5} This seems to be not correct according to the official documentation https://serp-p.pids.gov.ph/publication/public/view?slug=taxpayer-identification-number-tin-its-development-and-importance-in-tax-administration """ 12 digit number (E.g. 123 456 789 002), of which the first digit identifies type of taxpayer (0 for corporations, 1-9 for individuals and other businesses), second to eighth digits are sequential numbers between 0 and 9, ninth digit is a check number, last three digits are 000 for individuals and head office of businesses and 001-999 for branches of businesses, if any """ The TIN should be a 9 digit code + 3 for the branch code opw-3141793 closes odoo/odoo#111519 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
- Mar 06, 2023
-
-
Julien (jula) authored
__Description of the issue this PR addresses:__ The first character of a Tax ID from Albania is a letter representing the decade in which it has been issued. The letter M represents the current decade. (This pdf explains in details how it is formated: https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Albania-TIN.pdf). Currently the way Albanian Tax IDs are validated is through the python library [`python-stdnum`](https://pypi.org/project/python-stdnum/). However, the regex that is used to validate them has not been updated since 2017. (I made a PR in its repo https://github.com/arthurdejong/python-stdnum/pull/402 to fix that). The code from this commit is inspired by the one from that library, but the regex includes the letter M. __Current behavior before PR:__ (`base_vat` must be installed) By going to Settings > Users & Companies > [A company]: - Set the country to Albania - Set VAT/Tax ID to “M12345678T”. => Error message closes odoo/odoo#114006 Signed-off-by:
Nicolas Viseur (vin) <vin@odoo.com>
-
- Feb 26, 2023
-
-
Odoo Translation Bot authored
-
- Feb 13, 2023
-
-
Odoo Translation Bot authored
-
- Jan 25, 2023
-
-
Shawcker authored
The current VAT check doesn't pass for valid Venezuelan VAT numbers (RIF). Venezuela has a specific method to validate their RIF, very different from the standard VIES check. This commit adds an implementation of the VAT number validation in Venezuela. The validation is based on (1) pattern matching (2) checksum validation Task id=3094593 closes odoo/odoo#107658 Signed-off-by:
Florian Gilbert (flg) <flg@odoo.com>
-
- Jan 15, 2023
-
-
Odoo Translation Bot authored
-
- Jan 01, 2023
-
-
Odoo Translation Bot authored
-
- Nov 15, 2022
-
-
Nshimiyimana Séna authored
### Steps to reproduce * install the *VAT Number Validation `(base_vat)`* and Contacts module. * Create a new contact from San Marino and set their Tax Id to SM05426 * Save the contact You should see that the leading zeros have been removed on the Tax Id (here, SM05426 became SM5426) opw-3007722 closes odoo/odoo#103545 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
- Nov 04, 2022
-
-
Tommy (tong) authored
Part-of: odoo/odoo#81280
-
- Jun 13, 2022
-
-
Laurent Smet authored
Foreign companies that trade with non-enterprises in the EU may have a VATIN starting with "EU" instead of a country code. Currently, the user is facing a traceback in this situation since stdnum doesn't have any format method for vat number starting with 'EU'. closes odoo/odoo#93463 Ticket: 2877716 Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
-
- Apr 24, 2022
-
-
Odoo Translation Bot authored
-
- Apr 03, 2022
-
-
Odoo Translation Bot authored
-
- Mar 10, 2022
-
-
Moises Lopez authored
The following line of code: self.env.ref("base.europe").with_context(lang="fr_CA").country_ids It is executing the following query: SELECT res_country_res_country_group_rel.res_country_group_id, res_country_res_country_group_rel.res_country_id FROM res_country_res_country_group_rel, "res_country" LEFT JOIN "ir_translation" AS "res_country__name" ON ("res_country"."id" = "res_country__name"."res_id" AND "res_country__name"."type" = 'model' AND "res_country__name"."name" = 'res.country,name' AND "res_country__name"."lang" = 'fr_CA' AND "res_country__name"."value" != '') WHERE 1=1 AND res_country_res_country_group_rel.res_country_group_id IN (1) AND res_country_res_country_group_rel.res_country_id = res_country.id ORDER BY COALESCE("res_country__name"."value", "res_country"."name") OFFSET 0 With duration: 138.119ms But it is not needed to spend processing to compute it if it even will not be used if the `vat` is empty If your website checkout process is creating almost the partners without `vat` it could have a better performance closes odoo/odoo#85064 Signed-off-by:
Olivier Colson <oco@odoo.com>
-
- Mar 06, 2022
-
-
Odoo Translation Bot authored
-
- Feb 15, 2022
-
-
Odoo Translation Bot authored
-
- Jan 02, 2022
-
-
Odoo Translation Bot authored
-
- Dec 03, 2021
-
-
root authored
Before this fix there is no real way to influence the VAT validation. This can be problematic though as in some cases external platforms push data to you on which you don't really have control. If an external software pushes an invalid VAT and your database has the option 'Verify VAT Numbers' checked on there is no way for you to bypass this though. This means that before this commit you have to always run VAT number checks on all data, no matter if they come through the frontend or backend. After this commit you can supply a context key 'no_vat_validation' though. This way you could skip doing VAT number validations on (some) records while still enforcing this in the UI. This allows you to have crons/external API's push any VAT number while enforcing full validation through the UI. This opens up the best of both worlds. closes odoo/odoo#80799 X-original-commit: 11fd5b4d Signed-off-by:
Olivier Colson <oco@odoo.com>
-
- Nov 26, 2021
-
-
Ricardo Gomes Rodrigues (rigr) authored
Some countries, such as Portugal, persons also have VAT-like tax numbers, that can be used in invoices, just like company VAT numbers can. However, the VIES service does not work for these person VAT numbers, only for companies. This fix ensures that VIES validation is only used for companies. closes odoo/odoo#80203 X-original-commit: f251358ae71ad481d044da36758a157ad2ec9abb Signed-off-by:
William André (wan) <wan@odoo.com> Co-authored-by:
Daniel Reis <dreis.pt@hotmail.com> Co-authored-by:
Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
-
- Nov 07, 2021
-
-
Odoo Translation Bot authored
-
- Oct 24, 2021
-
-
Odoo Translation Bot authored
-
- Oct 10, 2021
-
-
Odoo Translation Bot authored
-
- Oct 03, 2021
-
-
Odoo Translation Bot authored
-
- Sep 05, 2021
-
-
Odoo Translation Bot authored
-
- Aug 17, 2021
-
-
Philémon van Helden authored
In 12.0+ when adding an XI (Northern Ireland) VAT number on a vendor and specifying the country as United Kingdom, an error shows the VAT number as not valid. This is because the method to check specifically XI VAT numbers doesn't recognize XI as a country, and thus uses the GB VAT number verification, which doesn't recognize XI VAT numbers as it isn't up to date yet. A temporary method to check XI VAT number was already added, but is never called because XI is not recognized as a country code. With this commit, we add a list of known legitimate country codes, that are not considered as such in Odoo. opw-2534541 closes odoo/odoo#75189 X-original-commit: d8b8ad47 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
pvh-odoo <SwagSamaSempai@users.noreply.github.com>
-
- Jul 26, 2021
-
-
Xavier-Do authored
The license is missing in most enterprise manifest so the decision was taken to make it explicit in all cases. When not defined, a warning will be triggered starting from 14.0 when falling back on the default LGPL-3. closes odoo/odoo#74231 Related: odoo/enterprise#19850 Related: odoo/design-themes#43 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
- Jul 25, 2021
-
-
Odoo Translation Bot authored
-
- Jul 18, 2021
-
-
Odoo Translation Bot authored
-
- Jul 11, 2021
-
-
Odoo Translation Bot authored
-
- Jun 27, 2021
-
-
Odoo Translation Bot authored
-
- Jun 20, 2021
-
-
Odoo Translation Bot authored
-
- Jun 18, 2021
-
-
Philémon van Helden authored
In 12.0+ when adding an NL VAT number on a contact without specifying the country as Netherlands, an error shows the VAT number as not valid. This is because the method to check specifically NL VAT numbers requires the complete VAT number with country code, when the country code isn't always provided. With this commit, we allow the check_vat_nl method to take the NL VAT number as argument, with or without the country code. opw-2536261 closes odoo/odoo#72366 X-original-commit: 75cfe3f484bd56723b182def09141d929a3169a1 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
pvh-odoo <SwagSamaSempai@users.noreply.github.com>
-
- Jun 06, 2021
-
-
Odoo Translation Bot authored
-
- May 09, 2021
-
-
Odoo Translation Bot authored
-
- May 02, 2021
-
-
Odoo Translation Bot authored
-