Skip to content

Commit

Permalink
Merge PR #1421 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 23, 2025
2 parents 760eef4 + b3170d4 commit c6fd530
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions 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 All @@ -40,8 +44,16 @@
/>
<field name="name" invisible="1" />
<field name="state" invisible="1" />
<field name="product_uom" groups="uom.group_uom" />
<field name="product_uom_qty" string="To Consume" />
<field
name="product_uom"
groups="uom.group_uom"
attrs="{'readonly': [('state', '!=', 'draft')]}"
/>
<field
name="product_uom_qty"
string="To Consume"
attrs="{'readonly': [('state', '!=', 'draft')]}"
/>
<button
name="action_task_product_forecast_report"
type="object"
Expand Down

0 comments on commit c6fd530

Please sign in to comment.