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
Jesús Feliciano Valdez Cruz [Vauxoo]
parent
34801b1f73
commit
599773c924
@@ -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, "
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user