<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="scrum_backlog_merge_view" model="ir.ui.view">
            <field name="name">Merge Backlogs</field>
            <field name="model">project.scrum.backlog.merge</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
               <form string="Merge Backlogs">
                   <separator string="Are you sure you want to merge these Backlogs?" colspan="4"/>
                   <label colspan="4" string="This wizard merge backlogs and create one new backlog with draft state (Old backlogs Will be deleted). And it also merge old tasks from backlogs" />
                   <separator colspan="4"/>
                   <button colspan="2" special="cancel" string="Cancel" icon="gtk-cancel"/>
                   <button colspan="2" default_focus="1" name="check_backlogs" string="Merge" type="object" icon="gtk-execute"/>
               </form>
            </field>
        </record>

        <record id="action_scrum_backlog_merge" model="ir.actions.act_window">
            <field name="name">Merge Backlogs</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">project.scrum.backlog.merge</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
            <field name="view_id" ref="scrum_backlog_merge_view"/>
        </record>

        <record model="ir.values" id="scrum_backlog_merge_values">
            <field name="model_id" ref="model_project_scrum_product_backlog" />
            <field name="object" eval="1" />
            <field name="name">Merge Backlogs</field>
            <field name="key2">client_action_multi</field>
            <field name="value" eval="'ir.actions.act_window,' + str(ref('action_scrum_backlog_merge'))" />
            <field name="key">action</field>
            <field name="model">project.scrum.product.backlog</field>
        </record>

        <record id="scrum_merge_project_id_view" model="ir.ui.view">
            <field name="name">Merge Backlogs</field>
            <field name="model">project.scrum.backlog.merge</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
               <form string="Merge Backlogs">
					<separator string="Select the project for merged backlogs" colspan="4"/>
					<field name="project_id"/>
					<separator colspan="4"/>
					<button special="cancel" string="Cancel" icon="gtk-cancel"/>
					<button name="do_merge" string="Merge Backlogs" type="object" icon="gtk-execute"/>
                </form>
            </field>
        </record>


    </data>
</openerp>
