From 9c8ddea062dc890f95bc6c033f5c3a78801ba1ca Mon Sep 17 00:00:00 2001 From: Adrien Widart Date: Fri, 3 Jun 2022 08:47:23 +0000 Subject: [PATCH] [FIX] stock: display the forecast symbol on outgoing SM To reproduce the issue: 1. Create a storable product P 2. Update the on-hand quantity: 5 x P 3. Create a planned delivery order with 4 x P - Note: once saved, the forecast symbole is green 4. On the delivery order, set the quantity to 5 and save Error: The symbol is now red, which is incorrect: there are 5 available P in the stock The color condition is incorrect, when `forecast_availability` is equal to zero, it means that there will be just the right quantity: https://github.com/odoo/odoo/blob/892232b5aef42dd2706cb9d1d027b1c463ca50dd/addons/stock/models/stock_move.py#L446-L448 task-2822157 X-original-commit: b49577d1aa0dda3b3890c7150db0242254cf46c5 Part-of: odoo/odoo#94332 --- addons/stock/views/stock_picking_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index d19e37c992c..b30b30a56ec 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -396,9 +396,9 @@