Skip to content

Commit

Permalink
[FIX]stock_ux:qty when not allow more quantities
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadhoc committed Sep 16, 2024
1 parent 0843e47 commit 5f02756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_ux/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5f02756

Please sign in to comment.