<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="pos_config_view_form_inherit_qz" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.qz</field>
        <field name="model">res.config.settings</field>
        <field name="priority" eval="96"/>
        <field name="inherit_id" ref="point_of_sale.res_config_settings_view_form"/>
        <field name="arch" type="xml">
            <xpath expr="//block[@id='pos_interface_section']" position="inside">
                <setting id="qz_tray_printer" string="QZ Tray Printer (Star/Epson Direct IP Override)" help="Local browser printing via QZ Tray.">
                    <field name="use_qz_printer"/>
                    <div class="content-group" invisible="not use_qz_printer">
                        <div class="row mt16">
                            <label string="Billing Printer" for="qz_billing_printer_name" class="col-lg-3 o_light_label"/>
                            <field name="qz_billing_printer_name"/>
                        </div>
                        <div class="row mt16">
                            <label string="Kitchen Printer" for="qz_kitchen_printer_name" class="col-lg-3 o_light_label"/>
                            <field name="qz_kitchen_printer_name"/>
                        </div>
                        <div class="row mt16">
                            <label string="Receipt Width" for="qz_paper_width" class="col-lg-3 o_light_label"/>
                            <field name="qz_paper_width"/>
                        </div>
                        <div class="row mt16">
                            <label string="Print Logo" for="qz_print_logo" class="col-lg-3 o_light_label"/>
                            <field name="qz_print_logo"/>
                        </div>
                        <div class="row mt16">
                            <label string="Enable Cutter" for="qz_enable_cutter" class="col-lg-3 o_light_label"/>
                            <field name="qz_enable_cutter"/>
                        </div>
                        <div class="row mt16" invisible="not qz_enable_cutter">
                            <label string="Cut Mode" for="qz_cut_mode" class="col-lg-3 o_light_label"/>
                            <field name="qz_cut_mode"/>
                        </div>
                    </div>
                </setting>
            </xpath>
        </field>
    </record>

    <record id="pos_config_form_view_inherit_qz" model="ir.ui.view">
        <field name="name">pos.config.form.inherit.qz</field>
        <field name="model">pos.config</field>
        <field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
        <field name="arch" type="xml">
            <setting id="other_devices" position="after">
                <setting id="qz_tray_printer_pos_config" string="QZ Tray Printer (Star/Epson Direct IP Override)" help="Local browser printing via QZ Tray.">
                    <field name="use_qz_printer"/>
                    <div class="content-group" invisible="not use_qz_printer">
                        <div class="row mt16">
                            <label string="Billing Printer" for="qz_billing_printer_name" class="col-lg-3 o_light_label"/>
                            <field name="qz_billing_printer_name"/>
                        </div>
                        <div class="row mt16">
                            <label string="Kitchen Printer" for="qz_kitchen_printer_name" class="col-lg-3 o_light_label"/>
                            <field name="qz_kitchen_printer_name"/>
                        </div>
                        <div class="row mt16">
                            <label string="Receipt Width" for="qz_paper_width" class="col-lg-3 o_light_label"/>
                            <field name="qz_paper_width"/>
                        </div>
                        <div class="row mt16">
                            <label string="Print Logo" for="qz_print_logo" class="col-lg-3 o_light_label"/>
                            <field name="qz_print_logo"/>
                        </div>
                        <div class="row mt16">
                            <label string="Enable Cutter" for="qz_enable_cutter" class="col-lg-3 o_light_label"/>
                            <field name="qz_enable_cutter"/>
                        </div>
                        <div class="row mt16" invisible="not qz_enable_cutter">
                            <label string="Cut Mode" for="qz_cut_mode" class="col-lg-3 o_light_label"/>
                            <field name="qz_cut_mode"/>
                        </div>
                    </div>
                </setting>
            </setting>
        </field>
    </record>
</odoo>
