From dfd97441e6efd142780a040bb9d7b5e371448619 Mon Sep 17 00:00:00 2001 From: sergio-teruel Date: Mon, 4 Nov 2024 21:38:18 +0100 Subject: [PATCH] [IMP] stock_weighing: Set move id in weigh wizard for access to other models linked to move. Very useful to access to production order linked to move TT51569 --- stock_weighing/models/stock_move_line.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stock_weighing/models/stock_move_line.py b/stock_weighing/models/stock_move_line.py index 0cff758b..8daa12f7 100644 --- a/stock_weighing/models/stock_move_line.py +++ b/stock_weighing/models/stock_move_line.py @@ -37,6 +37,7 @@ def action_weighing(self): default_weight=self[0].recorded_weight or self[0].qty_done, default_move_line_ids=self.ids, default_print_label=self.picking_type_id.print_weighing_label, + default_move_id=self.move_id.id, ) return action