From aede5c595ab453b44da74a1f7f1874ab014ee1a5 Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Tue, 6 Jun 2023 09:11:35 +0000 Subject: [PATCH] [FIX] stock: always show the detailed operation button We want be able to click on the button right at the stock move creation Task: 3256447 X-original-commit: d8926ec8f4a2d8f7840ea4c0ddd8393a74e57d90 Part-of: odoo/odoo#126069 --- addons/stock/models/stock_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py index 91f83e5e196..f3d0fe7f81f 100644 --- a/addons/stock/models/stock_move.py +++ b/addons/stock/models/stock_move.py @@ -249,7 +249,7 @@ class StockMove(models.Model): else: move.show_details_visible = (((consignment_enabled and move.picking_code != 'incoming') or show_details_visible or move.has_tracking != 'none') and - move.state != 'draft' and + (move.state != 'draft' or move.picking_id) and move.show_operations is False) def _compute_show_reserved_availability(self):