Missing mult_add function in base_vat module
Bug #301775 reported by
Jordi Esteve (www.zikzakmedia.com)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The mult_add function used to verify some vat numbers is missing in base_vat module (Austria, Spain, Italy and Sweden VAT verification use it).
The following function must be add at begining of base_vat/partner.py (see http://
def mult_add(i, j):
'''
Sum each digits of the multiplication of i and j.
'''
mult = i * j
res = 0
for i in range(len(
res += int(str(mult)[i])
return res
Related branches
To post a comment you must log in.
fixed.
But smarter method has been added :D