From 218db1cd5fca126c2c292eb6bf943e1794075d91 Mon Sep 17 00:00:00 2001 From: Adrien Widart Date: Tue, 2 Nov 2021 12:39:54 +0000 Subject: [PATCH] [FIX] stock: display 'Order Once' if qty > 0 If the multiple quantity of a RR is less than 1.0, the buttons 'Order Once' and 'Automate Orders' may remain invisible (Need sale_management,purchase_stock) 1. Create a product P - Type: Storable - Add a vendor - Routes: Buy - Reordering rule: - Trigger: Manual - Min Quantity: 0 - Max Quantity: 0 - Multiple Quantity: 0.01 2. Create and confirm a sale order with 0.50 x P 3. Inventory > Operations > Replenishment Error: P is present, its qty to order is 0.50, however the button 'Order Once' is not displayed OPW-2612472 closes odoo/odoo#79379 X-original-commit: 81b2677677645329999cc496dc961db22bd522dd Signed-off-by: Arnold Moyaux Signed-off-by: Adrien Widart --- addons/stock/views/stock_orderpoint_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/views/stock_orderpoint_views.xml b/addons/stock/views/stock_orderpoint_views.xml index 07097337909..159c96359c6 100644 --- a/addons/stock/views/stock_orderpoint_views.xml +++ b/addons/stock/views/stock_orderpoint_views.xml @@ -59,9 +59,9 @@