<?xml version="1.0" encoding="UTF-8"?>
<odoo>

        <record id="view_op_faculty_form_library_inherit" model="ir.ui.view">
            <field name="name">op.faculty.form.library.inherit</field>
            <field name="model">op.faculty</field>
            <field name="inherit_id" ref="openeducat_core.view_op_faculty_form"/>
            <field name="priority" eval="16"/>
            <field name="arch" type="xml">
                <notebook position="inside">
                    <page name="library" string="Library">
                        <group class="col-4">
                            <field name="library_card_id"/>
                        </group>
                    </page>
                </notebook>
                <xpath expr="//div[@name='button_box']" position="inside">
                    <button class="btn oe_stat_button"
                            type="object"
                            name="count_media_movement_lines"
                            style="border-right: 1px solid;"
                            icon="fa-file"
                            groups="openeducat_library.group_op_library,openeducat_library.group_op_library_user">
                        <field string="Media" name="media_movement_lines_count" widget="statinfo"/>
                    </button>
                </xpath>
            </field>
        </record>

</odoo>
