Reviewers: ,
Please review this at http://codereview.tryton.org/27001/ Affected files: M inventory.py Index: inventory.py =================================================================== --- a/inventory.py +++ b/inventory.py @@ -263,7 +263,11 @@ :return: the stock.move id or None ''' move_obj = self.pool.get('stock.move') - delta_qty = line.expected_quantity - line.quantity + uom_obj = self.pool.get('product.uom') + + delta_qty = uom_obj.compute_qty(line.uom, + line.expected_quantity - line.quantity, + line.uom) if delta_qty == 0.0: return from_location = line.inventory.location.id -- [email protected] mailing list
