From 1b698fcc4442b2378f31f334723981754d351041 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 8 Feb 2022 12:25:53 +0100 Subject: [PATCH] [FIX] rma_sale_mrp: description - When creating an RMA for a kit from the portal, the description was lost for the components. - Also fix template that doesn't comply the field directive --- rma_sale_mrp/views/sale_order_portal_template.xml | 4 ++-- rma_sale_mrp/wizard/sale_order_rma_wizard.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rma_sale_mrp/views/sale_order_portal_template.xml b/rma_sale_mrp/views/sale_order_portal_template.xml index f48a0b4f..3d777b52 100644 --- a/rma_sale_mrp/views/sale_order_portal_template.xml +++ b/rma_sale_mrp/views/sale_order_portal_template.xml @@ -60,10 +60,10 @@
-
()
+
()
- + Waiting diff --git a/rma_sale_mrp/wizard/sale_order_rma_wizard.py b/rma_sale_mrp/wizard/sale_order_rma_wizard.py index d8e89772..cf56ae5c 100644 --- a/rma_sale_mrp/wizard/sale_order_rma_wizard.py +++ b/rma_sale_mrp/wizard/sale_order_rma_wizard.py @@ -65,6 +65,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) qty_to_return -= kit_line.quantity