From 3d434ea0d4b09cd162aea0d5f195ea30b67d02f0 Mon Sep 17 00:00:00 2001 From: clesgow Date: Fri, 27 Oct 2023 14:19:49 +0200 Subject: [PATCH] [FIX] stock: display forecast widget on deliveries Steps to reproduce: - Create a Delivery - Put any product, some quantity and save Issue: The forecast icon disappears as soon as the picking leaves its 'draft' state. closes odoo/odoo#140114 Signed-off-by: Arnold Moyaux (arm) --- addons/stock/views/stock_picking_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index f4b10dcb905..8c2d804ab24 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -322,7 +322,7 @@ invisible="quantity > 0 or forecast_availability > 0 or (parent.picking_type_code == 'outgoing' and state != 'draft')"/> + column_invisible="parent.state in ('draft', 'done') or parent.picking_type_code != 'outgoing'" widget="forecast_widget"/>