[12.0][FIX] stock_secondary_unit: move line create round

On move line creation, the precision of secondary qty rounding is wrong; the unit of measure factor is being used instead of rounding.
This commit is contained in:
Enrique
2019-11-13 10:59:39 +01:00
committed by Jesús Alan Ramos Rodríguez
parent 7d7be8c263
commit 34d6811d60

View File

@@ -43,7 +43,7 @@ class StockMoveLine(models.Model):
'product_uom_qty', vals.get('qty_done', 0.0))
qty = float_round(
move_line_qty / (factor or 1.0),
precision_rounding=move.secondary_uom_id.uom_id.factor
precision_rounding=move.secondary_uom_id.uom_id.rounding
)
vals.update({
'secondary_uom_qty': qty,