Add inactive purchase_fix_get_move_done_rounding patch

This commit is contained in:
Guillem Barba 2015-11-11 11:47:00 +01:00
parent 4722be2f42
commit 44382237b4
2 changed files with 13 additions and 0 deletions

View File

@ -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

1
series
View File

@ -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