Skip to content

Commit

Permalink
[14.0][IMP] custom_mrp_line_cost: Add fields attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tu Nombre authored and oihane committed Oct 3, 2024
1 parent 67ceacd commit e143099
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions custom_mrp_line_cost/views/stock_move_line_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@
<field name="inherit_id" ref="stock.view_move_line_tree" />
<field name="arch" type="xml">
<field name="product_uom_id" position="after">
<field name="applied_price" optional="show" />
<field
name="applied_price"
optional="show"
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
/>
</field>
<field name="qty_done" position="after">
<field name="clean_qty" optional="hide" sum="Total Clean" />
<field
name="clean_qty"
optional="hide"
sum="Total Clean"
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
/>
<field name="clean_performance" optional="hide" />
</field>
</field>
Expand Down Expand Up @@ -128,9 +137,10 @@
attrs="{'readonly': [('state', 'in', ('cancel', 'done'))]}"
sum="Total Pallet"
/>
<field name="is_locked" invisible="1" />
<field
name="container"
attrs="{'readonly': [('state', '=', 'cancel')]}"
attrs="{'readonly': [('state', '=', 'cancel'), ('is_locked', '=', True)]}"
sum="Total Container"
/>
<field
Expand Down

0 comments on commit e143099

Please sign in to comment.