[FIX] add missing method

lp bug: https://launchpad.net/bugs/301775 fixed

bzr revid: christophe@tinyerp.com-20081125164939-1iv880xrvacgfqns
This commit is contained in:
Christophe Simonis 2008-11-25 17:49:39 +01:00
parent fbb516075c
commit 97e68d3b27
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@
from osv import osv
from osv import fields
def mult_add(i, j):
"""Sum each digits of the multiplication of i and j."""
return reduce(lambda x, y: x + int(y), str(i*j), 0)
class res_partner(osv.osv):
_inherit = 'res.partner'