mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[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:
committed by
Denis Roussel
parent
8167271ed1
commit
705c7cd05e
@@ -15,7 +15,7 @@ class ContractLine(models.Model):
|
|||||||
)
|
)
|
||||||
sale_line_vals = {
|
sale_line_vals = {
|
||||||
'product_id': self.product_id.id,
|
'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,
|
'uom_id': self.uom_id.id,
|
||||||
'discount': self.discount,
|
'discount': self.discount,
|
||||||
'contract_line_id': self.id,
|
'contract_line_id': self.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user