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

        <record id="view_project_compute_phases_select" model="ir.ui.view">
            <field name="name">Schedule Phases</field>
            <field name="model">project.compute.phases</field>
            <field name="arch" type="xml">
                  <form string="Schedule Phases" version="7.0">
                      <group>
                          <field name="target_project"/>
                          <field name="project_id" attrs="{'invisible':[('target_project','=','all')], 'required':[('target_project','!=','all')]}"/>
                      </group>
                      <footer>
                          <button name="check_selection" string="C_ompute" type="object" class="oe_highlight"/>
                          or
                         <button string="Cancel" class="oe_link" special="cancel" />
                      </footer>
                  </form>
            </field>
        </record>

        <record id="action_project_compute_phases" model="ir.actions.act_window">
               <field name="name">Schedule Phases</field>
               <field name="type">ir.actions.act_window</field>
               <field name="res_model">project.compute.phases</field>
               <field name="view_type">form</field>
               <field name="view_mode">form</field>
               <field name="view_id" ref="view_project_compute_phases_select"/>
               <field name="target">new</field>
               <field name="help">To schedule phases of all or a specified project. It then open a gantt view.
               </field>
        </record>

        <menuitem id="menu_compute_phase"
            parent="menu_phase_schedule" action="action_project_compute_phases"/>

    </data>
</openerp>
