Merge lp:~openerp-dev/openobject-addons/trunk-bug-1204761-ptr into lp:openobject-addons

Proposed by Pariket Trivedi(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1204761-ptr
Merge into: lp:openobject-addons
Diff against target: 13 lines (+3/-0)
1 file modified
base_vat/base_vat.py (+3/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1204761-ptr
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+195559@code.launchpad.net

Description of the change

hello all,

I have fixed behaviour when inputting a wrong VAT number, the system pop ups an error but ignores the error and marks the VAT number as valid.

Thanks,
ptr

To post a comment you must log in.

Unmerged revisions

8926. By Pariket Trivedi(OpenERP)

[MERGE]: merged with trunk.

8925. By Pariket Trivedi(OpenERP)

[FIX] : VAT checkbox not tick raise exception.

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 2013-05-28 10:45:00 +0000
3+++ base_vat/base_vat.py 2013-11-18 09:04:17 +0000
4@@ -130,6 +130,9 @@
5 return True
6
7 def vat_change(self, cr, uid, ids, value, context=None):
8+ if value:
9+ vat_country, vat_number = self._split_vat(value)
10+ value = vat_country[0] in string.ascii_lowercase and vat_country[1] in string.ascii_lowercase
11 return {'value': {'vat_subjected': bool(value)}}
12
13 _columns = {

Subscribers

People subscribed via source and target branches

to all changes: