Comment 6 for bug 876200

Revision history for this message
xrg (xrg) wrote : Re: [Bug 876200] Re: [base_vat] Basic VAT check when country specific check not defined in the module

On Monday 17 October 2011, you wrote:
> To me, this is a blocking error.
>
> The application should allow to enter any VAT, as long as the basic
> rules of country code is followed.

Well, please consider the inverse logic, which is in fact applied in the
"trunk-xrg" series (long ago):
 - if letters are provided, the VAT is checked against the country's specific
algorithm (if available)
 - if they are /not/ provided, country is assumed to be partner's country.
Fair, isn't it?
 - if the partner's country is not set, the current company's country is
assumed (that's usually the case)

So, it is more usable, because we don't need to enter these letters. Then, for
each country, there is a boolean field in country's settings to enable/disable
VAT num. calculation, and another field to select default letters (used for the
"EL" case, here).
In "trunk-xrg", you can add extra countries like that, just by adding their
letters to "res.country" and disabling the check. Would that cover you?

At the end, this functionality (although inverse) is similar to what you're
asking. The only missing is a check that VAT num's country must agree with
partner's country (would we have any exceptions?).

--
Say NO to spam and viruses. Stop using Microsoft Windows!