<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="qc_issue_form" model="ir.ui.view">
        <field name="model">qc.issue</field>
        <field name="inherit_id" ref="quality_control_issue.qc_issue_form"/>
        <field name="arch" type="xml">
            <div name="button_box" position="inside">
                <button type="object" name="action_view_repair_orders" class="oe_stat_button" icon="fa-list">
                    <field name="repair_order_count" widget="statinfo" string="Repair Orders"/>
                </button>
            </div>
            <button name="scrap_products" position="after">
                <button name="%(action_qc_issue_make_repair)d" states="progress" string="Create Repair" type="action"/>
            </button>
        </field>
    </record>
</odoo>
