Skip to content

Commit

Permalink
[17.0][MIG] stock_picking_show_linked : Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hs-oerp committed Nov 7, 2024
1 parent 5ac5fc8 commit 40d3c44
Showing 1 changed file with 37 additions and 39 deletions.
76 changes: 37 additions & 39 deletions stock_picking_show_linked/views/stock_picking.xml
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="stock_picking_show_linked_form_inherit" model="ir.ui.view">
<field name="name">stock_picking_show_linked.form</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<div name="button_box" position="inside">
<field name="dest_picking_count" invisible="1" />
<field name="origin_picking_count" invisible="1" />
<button
class="oe_stat_button"
type="object"
name="action_stock_picking_destination"
icon="fa-truck"
invisible="dest_picking_count == 0"
>
<field
string="Dest. Transfers"
name="dest_picking_count"
widget="statinfo"
/>
</button>
<button
class="oe_stat_button"
type="object"
name="action_stock_picking_origin"
icon="fa-truck"
invisible="origin_picking_count == 0"
>
<field
string="Origin Transfers"
name="origin_picking_count"
widget="statinfo"
/>
</button>
</div>
</field>
</record>
</data>
<record id="stock_picking_show_linked_form_inherit" model="ir.ui.view">
<field name="name">stock_picking_show_linked.form</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<div name="button_box" position="inside">
<field name="dest_picking_count" invisible="1" />
<field name="origin_picking_count" invisible="1" />
<button
class="oe_stat_button"
type="object"
name="action_stock_picking_destination"
icon="fa-truck"
invisible="dest_picking_count == 0"
>
<field
string="Dest. Transfers"
name="dest_picking_count"
widget="statinfo"
/>
</button>
<button
class="oe_stat_button"
type="object"
name="action_stock_picking_origin"
icon="fa-truck"
invisible="origin_picking_count == 0"
>
<field
string="Origin Transfers"
name="origin_picking_count"
widget="statinfo"
/>
</button>
</div>
</field>
</record>
</odoo>

0 comments on commit 40d3c44

Please sign in to comment.