[FIX] rma_sale_mrp: description

- When creating an RMA for a kit from the portal, the description was
lost for the components.

rma_sale_mrp 13.0.2.0.1
This commit is contained in:
david
2022-02-08 12:25:53 +01:00
committed by Pedro M. Baeza
parent d7bd0ec36d
commit f4a08a235a
2 changed files with 2 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "Return Merchandise Authorization Management - Link with MRP Kits",
"summary": "Allow doing RMAs from MRP kits",
"version": "13.0.2.0.0",
"version": "13.0.2.0.1",
"development_status": "Beta",
"category": "RMA",
"website": "https://github.com/OCA/rma",

View File

@@ -68,6 +68,7 @@ class SaleOrderRmaWizard(models.TransientModel):
for kit_line in product_kit_component_lines:
kit_line.quantity = min(qty_to_return, kit_line.quantity)
kit_line.operation_id = line.operation_id
kit_line.description = line.description
kit_line.kit_qty_done = (
kit_line.quantity / kit_line.per_kit_quantity
)