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

        <record id="project_multi_budget_assign_view" model="ir.ui.view">
            <field name="name">Project Multi Budget</field>
            <field name="model">project.multi.budget.assign</field>
            <field name="arch" type="xml">
                <form string="Project Budget Assign">
                    <group col="4" colspan="2">
                        <field name="start_date"/>
                        <field name="end_date"/>
                        <field name="project_id" readonly="1" force_save="1"/>
                        <field name="project_start_date"/>
                        <field name="project_end_date"/>
                        <field name="project_multi_line" nolabel="1" colspan="4">
                            <tree editable="top" create="false">
                                <field name="project_id" invisible="1"/>
                                <field name="emp_map_id" invisible="1"/>
                                <field name="employee_id" readonly="1"  force_save="1" options="{'no_create_edit': True, 'no_quick_create': True}"/>
                                <field name="budgeted_qty"/>
                                <field name="all_percentage"/>
                                <field name="rem_percentage"/>
                                <field name="percentage"/>
                                <field name="budgeted_hours"/>
                                <field name="remaining" readonly="1" force_save="1"/>
                            </tree>
                        </field>
                    </group>
                    <footer>
                        <button string="Confirm" name="action_create_budgeted_hrs" type="object" default_focus="1"
                                class="btn-primary"/>
                        <button string="Cancel" class="btn-secondary" special="cancel"/>
                    </footer>
                </form>
            </field>
        </record>

        <record id="action_multi_budget_assign" model="ir.actions.act_window">
            <field name="name">Consultant Budget Hours Assign</field>
            <field name="res_model">project.multi.budget.assign</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="project_multi_budget_assign_view"/>
            <field name="target">new</field>
            <field name="binding_model_id" ref="project.model_project_project"/>
            <field name="binding_view_types">form</field>
        </record>

    </data>
</odoo>
