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
closes #538

Signed-off-by: Matias Velazquez <[email protected]>
  • Loading branch information
jcadhoc committed Nov 1, 2024
1 parent 4eeb6e3 commit 4a5fcec
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 4a5fcec

Please sign in to comment.