Merge lp:~openerp-community/openobject-addons/6.0-bug-876200_base_vat_lpistone into lp:openobject-addons/6.0

Proposed by Leonardo Pistone
Status: Needs review
Proposed branch: lp:~openerp-community/openobject-addons/6.0-bug-876200_base_vat_lpistone
Merge into: lp:openobject-addons/6.0
Diff against target: 14 lines (+2/-1)
1 file modified
base_vat/base_vat.py (+2/-1)
To merge this branch: bzr merge lp:~openerp-community/openobject-addons/6.0-bug-876200_base_vat_lpistone
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+86666@code.launchpad.net

Description of the change

allow entering a VAT code from an unsupported country

To post a comment you must log in.

Unmerged revisions

4974. By Leonardo Pistone

[FIX] allow entering a VAT code from an unsupported country

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'base_vat/base_vat.py'
2--- base_vat/base_vat.py 2011-01-17 20:44:55 +0000
3+++ base_vat/base_vat.py 2011-12-22 08:33:24 +0000
4@@ -61,8 +61,9 @@
5 if not partner.vat:
6 continue
7 vat_country, vat_number = self._split_vat(partner.vat)
8+ # if we don't know how to check the code, we just skip the check
9 if not hasattr(self, 'check_vat_' + vat_country):
10- return False
11+ return True
12 check = getattr(self, 'check_vat_' + vat_country)
13 if not check(vat_number):
14 return False