Skip to content

Commit

Permalink
[FIX] project_stock: Do not allow to edit the product in confirmed moves
Browse files Browse the repository at this point in the history
TT54633
  • Loading branch information
victoralmau committed Jan 23, 2025
1 parent 760eef4 commit a0ef0f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion project_stock/views/stock_move_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
decoration-danger="state not in ('done', 'cancel') and reserved_availability < product_uom_qty and product_uom_qty - reserved_availability > 0.0001"
>
<field name="company_id" invisible="1" />
<field name="product_id" required="1" />
<field
name="product_id"
required="1"
attrs="{'readonly': [('state', '!=', 'draft')]}"
/>
<field name="sequence" invisible="1" />
<field name="location_id" optional="hide" readonly="1" force_save="1" />
<field
Expand Down

0 comments on commit a0ef0f5

Please sign in to comment.