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):