diff --git a/purchase_fix_get_move_done_rounding.diff b/purchase_fix_get_move_done_rounding.diff new file mode 100644 index 0000000..558cf50 --- /dev/null +++ b/purchase_fix_get_move_done_rounding.diff @@ -0,0 +1,12 @@ +diff -r 39138b20bd95 purchase.py +--- a/trytond/trytond/modules/purchase/purchase.py Mon Nov 02 16:10:40 2015 +0100 ++++ b/trytond/trytond/modules/purchase/purchase.py Wed Nov 11 11:44:30 2015 +0100 +@@ -1011,7 +1011,7 @@ + break + quantity -= Uom.compute_qty(move.uom, move.quantity, self.unit) + if done: +- if quantity > 0.0: ++ if quantity > self.unit.rounding: + done = False + return done + diff --git a/series b/series index 092c45f..ad20563 100644 --- a/series +++ b/series @@ -80,3 +80,4 @@ issue5118.diff #024726_account_payment_type_remove_company.diff #stock_lot_improve_sync_inventory_to_outgoing.diff #stock_lot_fix_pick_product_without_outgoing_moves.diff +#purchase_fix_get_move_done_rounding.diff