Odoo18-Base/addons/repair/views/stock_lot_views.xml
2025-03-10 11:12:23 +07:00

22 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="stock_production_lot_view_form" model="ir.ui.view">
<field name="name">stock.production.lot.view.form</field>
<field name="model">stock.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_button_box')]/button" position="before">
<button class="oe_stat_button" name="action_view_ro" type="object" icon="fa-wrench" help="Repair Orders"
attrs="{'invisible': ['|', ('repair_order_count', '=', 0), ('display_complete', '=', False)]}">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="repair_order_count" widget="statinfo" nolabel="1" class="mr4"/>
</span>
<span class="o_stat_text">Repairs</span>
</div>
</button>
</xpath>
</field>
</record>
</odoo>