Use line rounding instead of move rounding on sale_move_done patch

This commit is contained in:
Sergi Almacellas Abellana 2016-04-07 08:47:39 +02:00
parent aa3eb15fcd
commit 35027cf324
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ diff -r 5ce23ab2f2fb trytond/trytond/modules/sale/sale.py
quantity -= move.origin_quantity
if done:
- if quantity > 0.0:
+ if quantity > move.uom.rounding:
+ if quantity > self.unit.rounding:
done = False
return done