[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:
parent
5db90156e9
commit
9cdde2b26c
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue