[FIX]mrp:raw material units should always be rounded up

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

bzr revid: ron@tinyerp.com-20110314131254-inohohq5tfgw32ey
This commit is contained in:
ron@tinyerp.com 2011-03-14 18:42:54 +05:30
parent 5db90156e9
commit 9cdde2b26c
1 changed files with 2 additions and 1 deletions

View File

@ -386,9 +386,10 @@ class mrp_bom_revision(osv.osv):
mrp_bom_revision()
def rounding(f, r):
import math
if not r:
return f
return round(f / r) * r
return math.ceil(f / r) * r
class mrp_production(osv.osv):
"""