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

		<record id="view_scrum_backlog_to_sprint" model="ir.ui.view">
			<field name="name">project.scrum.backlog.assign.sprint.form</field>
			<field name="model">project.scrum.backlog.assign.sprint</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Assign Sprint">
                    <separator string="Assign Sprint" colspan="4"/>
					<field name="sprint_id" colspan="4"/>
					<field name="state_open" />
					<field name="convert_to_task"/>
					<separator colspan="4"/>
                    <group col="2" colspan="2">
                    </group>
					<group col="2" colspan="2">
						<button special="cancel"  string="_Cancel" icon='gtk-cancel'/>
						<button name="assign_sprint" string="_Assign" colspan="1" type="object" icon="gtk-execute"/>
					</group>
				</form>
			</field>
		</record>

        <record id="action_scrum_backlog_to_sprint" model="ir.actions.act_window">
            <field name="name">Assign Sprint</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">project.scrum.backlog.assign.sprint</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_sprint_values">
            <field name="model_id" ref="model_project_scrum_product_backlog" />
            <field name="object" eval="1" />
            <field name="name">Assign Sprint</field>
            <field name="key2">client_action_multi</field>
            <field name="value" eval="'ir.actions.act_window,' + str(ref('action_scrum_backlog_to_sprint'))" />
            <field name="key">action</field>
            <field name="model">project.scrum.product.backlog</field>
        </record>

	</data>
</openerp>
