Skip to content

Commit

Permalink
[IMP] base_delivery_carrier_label: show weight field in tree and form…
Browse files Browse the repository at this point in the history
… view of stock.move.line
  • Loading branch information
alexis-via committed Sep 21, 2024
1 parent bd3f2e8 commit 27855f3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions base_delivery_carrier_label/views/stock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,31 @@
</field>
</field>
</record>
<record id="view_stock_move_line_detailed_operation_tree" model="ir.ui.view">
<field name="model">stock.move.line</field>
<field
name="inherit_id"
ref="stock.view_stock_move_line_detailed_operation_tree"
/>
<field name="arch" type="xml">
<field name="package_id" position="before">
<field name="weight" optional="hide" />
</field>
</field>
</record>
<record id="view_move_line_form" model="ir.ui.view">
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock.view_move_line_form" />
<field name="arch" type="xml">
<field name="package_id" position="before">
<label for="weight" />
<div name="weight">
<field name="weight" class="oe_inline" /> kg
</div>
</field>
</field>
</record>

<record id="view_quant_package_form" model="ir.ui.view">
<field name="model">stock.quant.package</field>
<field name="inherit_id" ref="stock.view_quant_package_form" />
Expand Down

0 comments on commit 27855f3

Please sign in to comment.