Skip to content

Commit 33d2bb5

Browse files
committed
[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.
1 parent 68ee38b commit 33d2bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contract_sale_generation/models/contract_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def _prepare_sale_line(self, order_id=False, sale_values=False):
1515
)
1616
sale_line_vals = {
1717
'product_id': self.product_id.id,
18-
'quantity': self._get_quantity_to_invoice(*dates),
18+
'product_uom_qty': self._get_quantity_to_invoice(*dates),
1919
'uom_id': self.uom_id.id,
2020
'discount': self.discount,
2121
'contract_line_id': self.id,

0 commit comments

Comments
 (0)