[12.0][FIX] contract: Incorrect product UOM qty dict key for the sale.order.line

The product UOM qty was not correctly set on the Sale Order Line
During the creation of a recurring Order from a Contract, the given quantity on the Contract Line was not correctly set on the created Sale Order Line.
This commit is contained in:
Mkxm Awilix
2021-01-27 10:15:39 +01:00
parent 68ee38b3ab
commit 33d2bb52c4

View File

@@ -15,7 +15,7 @@ class ContractLine(models.Model):
)
sale_line_vals = {
'product_id': self.product_id.id,
'quantity': self._get_quantity_to_invoice(*dates),
'product_uom_qty': self._get_quantity_to_invoice(*dates),
'uom_id': self.uom_id.id,
'discount': self.discount,
'contract_line_id': self.id,