Leonardo Pistone - Agile BG - Domsense has proposed merging
lp:~openerp-community/openobject-addons/6.0-bug-876200_base_vat_lpistone into
lp:openobject-addons/6.0.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #876200 in OpenERP Addons: "[base_vat] Basic VAT check when country
specific check not defined in the module"
https://bugs.launchpad.net/openobject-addons/+bug/876200
For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/6.0-bug-876200_base_vat_lpistone/+merge/86666
allow entering a VAT code from an unsupported country
--
https://code.launchpad.net/~openerp-community/openobject-addons/6.0-bug-876200_base_vat_lpistone/+merge/86666
Your team OpenERP Community is subscribed to branch
lp:~openerp-community/openobject-addons/6.0-bug-876200_base_vat_lpistone.
=== modified file 'base_vat/base_vat.py'
--- base_vat/base_vat.py 2011-01-17 20:44:55 +0000
+++ base_vat/base_vat.py 2011-12-22 08:33:24 +0000
@@ -61,8 +61,9 @@
if not partner.vat:
continue
vat_country, vat_number = self._split_vat(partner.vat)
+ # if we don't know how to check the code, we just skip the check
if not hasattr(self, 'check_vat_' + vat_country):
- return False
+ return True
check = getattr(self, 'check_vat_' + vat_country)
if not check(vat_number):
return False
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-community
More help : https://help.launchpad.net/ListHelp