Missing mult_add function in base_vat module

Bug #301775 reported by Jordi Esteve (www.zikzakmedia.com)
2
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://hg.tryton.org/vatnumber/rev/d543918be65f):

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(str(mult))):
        res += int(str(mult)[i])
    return res

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

fixed.
But smarter method has been added :D

Changed in openerp:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.