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

		<record id="view_scrum_backlog_to_task" model="ir.ui.view">
            <field name="name">project.scrum.backlog.create.task.form</field>
            <field name="model">project.scrum.backlog.create.task</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
			<form string="Convert to Task">
                <separator string="Convert to Task" colspan="4"/>
			    <field name="user_id"/>
				<separator colspan="4"/>
                <group col="2" colspan="2">
                </group>
			    <group col="2" colspan="2">
            		<button special="cancel"  string="_Cancel" icon='gtk-cancel'/>
					<button name="do_create" string="C_onvert" colspan="1" type="object" icon="gtk-execute"/>
				</group>
			</form>
            </field>
        </record>

        <record id="action_scrum_backlog_to_task" model="ir.actions.act_window">
            <field name="name">Convert to Task</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">project.scrum.backlog.create.task</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

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

	</data>
</openerp>
