Add patch to fix sale rounding errors

This commit is contained in:
Sergi Almacellas Abellana 2016-04-06 10:20:50 +02:00
parent d528a69258
commit aa3eb15fcd
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -r 5ce23ab2f2fb trytond/trytond/modules/sale/sale.py
--- a/trytond/trytond/modules/sale/sale.py Wed Apr 06 10:13:30 2016 +0200
+++ b/trytond/trytond/modules/sale/sale.py Wed Apr 06 10:14:05 2016 +0200
@@ -1148,7 +1148,7 @@
break
quantity -= move.origin_quantity
if done:
- if quantity > 0.0:
+ if quantity > move.uom.rounding:
done = False
return done

1
series
View File

@ -77,6 +77,7 @@ issue21611002_20001.diff
issue4536.diff
improve_stock_by_locations_performance.diff
issue5370.diff
sale_move_done_rounding.diff
# Ignore next patches
#incremental_wait_in_retries.diff
# Uncomment in calfruitos