From c0e2a31d4640c7225ab2844c3402a22851e675ef Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Wed, 14 Aug 2024 10:10:45 +0200 Subject: [PATCH] [FIX] repair_picking_after_done: make related picking contain repair_id and invisible condition corrected for many2many fields. --- repair_picking_after_done/views/repair.xml | 2 +- repair_picking_after_done/wizards/repair_move_transfer.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/repair_picking_after_done/views/repair.xml b/repair_picking_after_done/views/repair.xml index 7b3fcf412ca..1bce106730c 100644 --- a/repair_picking_after_done/views/repair.xml +++ b/repair_picking_after_done/views/repair.xml @@ -21,7 +21,7 @@ type="object" class="oe_stat_button" icon="fa-truck" - attrs="{'invisible': [('picking_ids', '=', False)]}" + attrs="{'invisible': [('picking_ids', '=', [])]}" >
Transfers diff --git a/repair_picking_after_done/wizards/repair_move_transfer.py b/repair_picking_after_done/wizards/repair_move_transfer.py index 2a1cd7a9353..3eb1a41595d 100644 --- a/repair_picking_after_done/wizards/repair_move_transfer.py +++ b/repair_picking_after_done/wizards/repair_move_transfer.py @@ -46,6 +46,7 @@ def _prepare_stock_move_vals(self, picking): "picking_type_id": self._get_picking_type().id, "product_uom_qty": self.quantity, "product_uom": self.repair_order_id.move_id.product_uom.id, + "repair_id": self.repair_order_id.id, } def action_create_transfer(self):