Files
manufacture/repair_stock/views/repair_order_view.xml
DavidJForgeFlow 4ce8882498 [ADD] repair_stock
2024-08-28 09:22:42 +02:00

27 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2024 ForgeFlow S.L. (https://www.forgeflow.com)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<record id="view_repair_order_form_repair_stock_move_inherited" model="ir.ui.view">
<field name="name">repair.order.form - repair_stock_move - custom</field>
<field name="model">repair.order</field>
<field name="inherit_id" ref="repair.view_repair_order_form" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
<button
name="action_view_pickings"
type="object"
class="oe_stat_button"
icon="fa-truck"
attrs="{'invisible': [('picking_count', '=', 0)]}"
help="Transfers associated with this repair order"
>
<field name="picking_count" widget="statinfo" string="Transfers" />
</button>
</xpath>
</field>
</record>
</odoo>