Skip to content
Snippets Groups Projects
  1. Aug 20, 2023
  2. Aug 13, 2023
  3. Jun 04, 2023
  4. Apr 30, 2023
  5. Apr 23, 2023
  6. Apr 09, 2023
  7. Mar 23, 2023
  8. Mar 06, 2023
  9. Feb 26, 2023
  10. Feb 13, 2023
  11. Jan 25, 2023
    • Shawcker's avatar
      [ADD] base_vat: VAT check for Venezuela · 4fca8ed2
      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: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      4fca8ed2
  12. Jan 15, 2023
  13. Jan 01, 2023
  14. Nov 15, 2022
  15. Nov 04, 2022
  16. Jun 13, 2022
  17. Apr 24, 2022
  18. Apr 03, 2022
  19. Mar 10, 2022
    • Moises Lopez's avatar
      [REF] base_vat: Speed-up check_vat if there is not vat · c4d40410
      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: default avatarOlivier Colson <oco@odoo.com>
      c4d40410
  20. Mar 06, 2022
  21. Feb 15, 2022
  22. Jan 02, 2022
  23. Dec 03, 2021
    • root's avatar
      [FIX] base_vat: allow disabling VAT check through context · d71badcc
      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: default avatarOlivier Colson <oco@odoo.com>
      d71badcc
  24. Nov 26, 2021
  25. Nov 07, 2021
  26. Oct 24, 2021
  27. Oct 10, 2021
  28. Oct 03, 2021
  29. Sep 05, 2021
  30. Aug 17, 2021
    • Philémon van Helden's avatar
      [FIX] base_vat: properly checks XI VAT numbers · 0268986b
      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: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      Signed-off-by: default avatarpvh-odoo <SwagSamaSempai@users.noreply.github.com>
      0268986b
  31. Jul 26, 2021
    • Xavier-Do's avatar
      [FIX] *: add explicit license to all manifest · 4f683968
      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: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      4f683968
  32. Jul 25, 2021
  33. Jul 18, 2021
  34. Jul 11, 2021
  35. Jun 27, 2021
  36. Jun 20, 2021
  37. Jun 18, 2021
    • Philémon van Helden's avatar
      [FIX] base_vat: properly checks NL VAT numbers · 5a2efa72
      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: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      Signed-off-by: default avatarpvh-odoo <SwagSamaSempai@users.noreply.github.com>
      5a2efa72
  38. Jun 06, 2021
  39. May 09, 2021
  40. May 02, 2021
Loading