Skip to content

Commit

Permalink
[IMP] rma: add rma_line_id to stock.move views
Browse files Browse the repository at this point in the history
When looking at stock moves created from a rma group, it may be confusing knowing who's move is for which RMA line. This improvement should avoid these confusions.
  • Loading branch information
DavidJForgeFlow authored and AaronHForgeFlow committed Jul 8, 2024
1 parent 6fab740 commit 8c16ce7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions rma/views/stock_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,31 @@
</field>
</record>

<record id="view_move_tree" model="ir.ui.view">
<field name="name">stock.move.tree - rma_line_id</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_tree" />
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="rma_line_id" optional="hide" invisible="not rma_line_id" />
</field>
</field>
</record>

<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.form.inherit</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<xpath
expr="//page[@name='operations']/field[@name='move_ids_without_package']/tree"
position="inside"
>
<field name="rma_line_id" optional="hide" invisible="not rma_line_id" />
</xpath>
</field>
</record>

<record id="stock_location_route_form_view_inherit_rma_stock" model="ir.ui.view">
<field name="name">stock.route.form</field>
<field name="inherit_id" ref="stock.stock_location_route_form_view" />
Expand Down

0 comments on commit 8c16ce7

Please sign in to comment.