From 4a5fcecc364a395c2d21e9a6131e761701a06ab9 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Carreras Date: Wed, 11 Sep 2024 14:00:57 +0000 Subject: [PATCH] [FIX]stock_ux:qty when not allow more quantities closes ingadhoc/stock#538 Signed-off-by: Matias Velazquez --- stock_ux/models/stock_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_ux/models/stock_move.py b/stock_ux/models/stock_move.py index 7df4bd74..77b13b5f 100644 --- a/stock_ux/models/stock_move.py +++ b/stock_ux/models/stock_move.py @@ -121,5 +121,5 @@ def create(self, vals_list): def _compute_is_initial_demand_editable(self): super(StockMove, self)._compute_is_initial_demand_editable() for move in self: - if move.picking_id.picking_type_id.block_additional_quantity and move.state != 'draft': + if move.picking_id.picking_type_id.block_additional_quantity and move.picking_id.state != 'draft': move.is_initial_demand_editable = False