<?xml version="1.0" encoding="UTF-8"?>
<odoo>
        <record id="assignment_smart_button" model="ir.ui.view">
            <field name="name">assignment.smart.buttons</field>
            <field name="model">op.student</field>
            <field name="inherit_id" ref="openeducat_core.view_op_student_form"/>
            <field name="priority" eval="3"/>
            <field name="arch" type="xml">
                <xpath expr="//div[@name='button_box']" position="inside">
                    <button class="btn oe_stat_button"
                            type="object"
                            name="get_assignment"
                            style="border-right: 1px solid;"
                            icon="fa-newspaper-o"
                            groups="openeducat_assignment.group_op_assignment_user,openeducat_assignment.group_op_assignment_manager">
                        <field string="Assignment" name="assignment_count" widget="statinfo"/>
                    </button>
                </xpath>
            </field>
        </record>
</odoo>
