[FIX] product: when converting unit of mesures, use ceiling instead of rounding method
authorMartin Trigaux <mat@openerp.com>
Thu, 6 Mar 2014 16:20:33 +0000 (17:20 +0100)
committerMartin Trigaux <mat@openerp.com>
Thu, 6 Mar 2014 16:20:33 +0000 (17:20 +0100)
commitb7faad596692c38938d29b2ef8d63f2866c9e5be
tree340696e798df32a3861b19dcca6dcfed5ff17603
parent005b593fef2aede33baa5d652af558ae728951c1
parent1e048736df81d58e1b18f1734e047808f225cd3b
[FIX] product: when converting unit of mesures, use ceiling instead of rounding method

This avoids flows to be stucked when a convertion would move/reserve/buy less pieces than the number required (eg: MTO product where supplier has a UoM bigger than the one on the sale order)

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

bzr revid: mat@openerp.com-20140306162033-yqoc22lo37x06cfh