Skip to content

Commit

Permalink
Merge pull request #532 from ForgeFlow/16.0-fp-498
Browse files Browse the repository at this point in the history
[16.0][IMP] rma: add rma_line_id to stock.move views
  • Loading branch information
LoisRForgeFlow authored Jul 8, 2024
2 parents d53b227 + 7061e99 commit ec9c1b7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions rma/views/stock_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,39 @@
</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"
attrs="{'invisible': [('rma_line_id', '=', False)]}"
/>
</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"
attrs="{'invisible': [('rma_line_id', '=', False)]}"
/>
</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 ec9c1b7

Please sign in to comment.