← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 387865] Re: Swiss VAT not defined in base_vat module

 

** Changed in: openobject-addons
       Status: Triaged => Confirmed

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/387865

Title:
  Swiss VAT not defined in base_vat module

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  the module base_vat has a function to check the validity of the VAT number depending of the country. The default check function controls the followings statements : def default_vat_check(self, cn, vn):
            # by default, a VAT number is valid if:
            #  it starts with 2 letters
            #  has more than 3 characters

The Swiss VAT has no letters and is only made by 6 numbers.  We could had a new check_vat_ch to allow only 6 numbers, without characters in the first 2 places.