[FIX] add missing method
lp bug: https://launchpad.net/bugs/301775 fixed bzr revid: christophe@tinyerp.com-20081125164939-1iv880xrvacgfqns
This commit is contained in:
parent
fbb516075c
commit
97e68d3b27
|
@ -30,6 +30,9 @@
|
||||||
from osv import osv
|
from osv import osv
|
||||||
from osv import fields
|
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):
|
class res_partner(osv.osv):
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
|
|
Loading…
Reference in New Issue