[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
committed by Jesús Feliciano Valdez Cruz [Vauxoo]
parent 34801b1f73
commit 599773c924
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
{
'name': 'Contracts Management - Recurring Sales',
'version': '12.0.1.0.1',
'version': '12.0.1.0.2',
'category': 'Contract Management',
'license': 'AGPL-3',
'author': "PESOL, "

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,