openerp-expert-localization team mailing list archive
-
openerp-expert-localization team
-
Mailing list archive
-
Message #00019
Modifications in base_vat
Dear team
I have made some changes to the logic of base_vat, so we have more control
of how and when to verify the VAT code.
The problem was that before we had to prepend the two letter ISO code of the
country in order to get the verification. That was a problem, since every
single method/function I had to create it had to strip the two first chars.
On the other side, it also created a problem on imports. If your country was
not among the ones with a VAT verification method, it would trigger the
constraint.
So, to get rid of that and optimize the module, here are the changes / extra
functionality :
- The VAT is calculated depending on the country.
- No need to insert the two letter code in the VAT number, since it's not
part of it anyways. Now the function will be calculated from the country
code taken from the VAT country name
- Added a verification flag, so you can avoid the verification if you want.
- Change the name of the file "base_vat_data.xml" to "base_vat_view.xml"
I committed two branches :
lp:~openerp-community/openobject-addons/meanmicio_base_vat (for improvements
on base_vat )
lp:~openerp-community/openobject-addons/meanmicio_fixes_5.0 ( for bugfixes
on current release )
In the latter, I fixed the United Kingdom country ISO code ( UK -> GB ).
Hope you find it useful. Once tested, I will propose a merge.
Regards
Luis Falcón
--
Luis Falcón
http://gnusolidario.org
Follow ups