2010-01-12 12:45:02 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-03-09 11:52:35 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Project Resource Allocation
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
2010-01-12 12:45:02 +00:00
|
|
|
<record id="view_project_resource_allocation_form" model="ir.ui.view">
|
|
|
|
<field name="name">project.resource.allocation.form</field>
|
|
|
|
<field name="model">project.resource.allocation</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Project Resource Allocation">
|
|
|
|
<field name="resource_id" select="1"/>
|
|
|
|
<field name="phase_id"/>
|
|
|
|
<field name="useability"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-09 11:52:35 +00:00
|
|
|
|
2010-01-12 12:45:02 +00:00
|
|
|
<record id="view_project_resource_allocation_list" model="ir.ui.view">
|
|
|
|
<field name="name">project.resource.allocation.list</field>
|
|
|
|
<field name="model">project.resource.allocation</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="priority" eval="5"/>
|
|
|
|
<field name="arch" type="xml">
|
2010-02-25 06:01:27 +00:00
|
|
|
<tree editable="bottom" string="Project Resource Allocation">
|
2010-01-12 12:45:02 +00:00
|
|
|
<field name="resource_id"/>
|
|
|
|
<field name="useability"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-09 11:52:35 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
# ------------------------------------------------------
|
2010-03-09 11:52:35 +00:00
|
|
|
# Project Phase
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
2010-01-12 12:45:02 +00:00
|
|
|
<record id="view_project_phase_form" model="ir.ui.view">
|
|
|
|
<field name="name">project.phase.form</field>
|
|
|
|
<field name="model">project.phase</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Project Phase">
|
|
|
|
<group colspan="6" col="6">
|
|
|
|
<field name="name" select="1"/>
|
2010-02-25 06:01:27 +00:00
|
|
|
<field name="project_id" on_change="onchange_project(project_id)"/>
|
|
|
|
<field name="responsible_id"/>
|
2010-01-12 12:45:02 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2010-04-06 16:15:10 +00:00
|
|
|
<page string="Resource Allocation Detail">
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator colspan="2" string="Duration"/>
|
|
|
|
<field name="duration" widget="float_time"/>
|
|
|
|
<field name="product_uom"/>
|
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator colspan="2" string="Dates"/>
|
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date_end"/>
|
|
|
|
</group>
|
2010-02-25 06:01:27 +00:00
|
|
|
<field colspan="4" name="resource_ids" nolabel="1">
|
2010-04-06 16:15:10 +00:00
|
|
|
<tree editable="bottom" string="Project Resource Allocation">
|
2010-02-25 06:01:27 +00:00
|
|
|
<field name="resource_id" context="{'project_id':parent.project_id}"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="useability"/>
|
2010-02-25 06:01:27 +00:00
|
|
|
</tree>
|
|
|
|
<form string="Project Resource Allocation">
|
|
|
|
<field name="resource_id" context="{'project_id':parent.project_id}"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="useability"/>
|
2010-02-25 06:01:27 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
<group col="12" colspan="4">
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="state" select="1"/>
|
|
|
|
<button string="Draft" name="set_draft" states="open" icon="gtk-indent"/>
|
|
|
|
<button string="Start Phase" name="set_open" states="pending,draft" icon="gtk-execute"/>
|
2010-03-09 11:52:35 +00:00
|
|
|
<button string="Done" name="set_done" states="draft,pending,open" icon="gtk-jump-to"/>
|
|
|
|
<button string="Pending" name="set_pending" states="open" icon="gtk-media-pause"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<button string="Cancel" name="set_cancel" states="draft,open,pending" icon="gtk-cancel"/>
|
2010-02-25 06:01:27 +00:00
|
|
|
</group>
|
2010-01-12 12:45:02 +00:00
|
|
|
</page>
|
|
|
|
<page string="Other Info">
|
2010-02-25 06:01:27 +00:00
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Constraints" colspan="2"/>
|
|
|
|
<field name="constraint_date_start"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="constraint_date_end"/>
|
2010-02-25 06:01:27 +00:00
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Scheduling" colspan="2"/>
|
|
|
|
<field name="sequence"/>
|
|
|
|
</group>
|
2010-01-12 12:45:02 +00:00
|
|
|
<separator colspan="4" string="Previous Phases"/>
|
|
|
|
<field colspan="4" name="previous_phase_ids" nolabel="1"/>
|
2010-03-22 10:47:27 +00:00
|
|
|
<separator colspan="4" string="Next Phases"/>
|
|
|
|
<field colspan="4" name="next_phase_ids" nolabel="1"/>
|
2010-01-12 12:45:02 +00:00
|
|
|
</page>
|
2010-02-25 06:01:27 +00:00
|
|
|
<page string="Task Detail">
|
|
|
|
<separator colspan="4" string="Project's Tasks"/>
|
2010-03-04 09:41:44 +00:00
|
|
|
<field colspan="4" name="task_ids" context="{'default_project_id' :project_id}" nolabel="1">
|
2010-04-06 16:15:10 +00:00
|
|
|
<tree editable="bottom" string="Project's Tasks">
|
2010-03-04 09:41:44 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="project_id"/>
|
|
|
|
<field name="user_id"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date_deadline"/>
|
|
|
|
<field name="planned_hours" widget="float_time" on_change="onchange_planned(project_id, user_id, planned_hours, effective_hours)"/>
|
|
|
|
<field name="remaining_hours" widget="float_time" sum="Remaining Hours"/>
|
|
|
|
<field name="effective_hours" invisible="1"/>
|
|
|
|
<field name="state"/>
|
|
|
|
<field name="occupation_rate"/>
|
2010-03-04 09:41:44 +00:00
|
|
|
</tree>
|
|
|
|
<form string="Project's Tasks">
|
2010-04-06 16:15:10 +00:00
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Task Detail">
|
|
|
|
<group colspan="4" col="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="project_id"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Dates" colspan="2"/>
|
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date_deadline"/>
|
|
|
|
<field name="occupation_rate"/>
|
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Planning" colspan="2"/>
|
|
|
|
<field name="planned_hours" widget="float_time" on_change="onchange_planned(project_id, user_id, planned_hours, effective_hours)"/>
|
|
|
|
<field name="remaining_hours" widget="float_time" sum="Remaining Hours"/>
|
|
|
|
<field name="effective_hours" invisible="1"/>
|
|
|
|
</group>
|
|
|
|
<group colspan="6" col="4">
|
|
|
|
<field name="state"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
2010-03-04 09:41:44 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
2010-04-06 12:20:52 +00:00
|
|
|
<button name="%(action_project_schedule_tasks)d" string="Schedule Tasks" type="action" icon="gtk-jump-to"/>
|
2010-02-25 06:01:27 +00:00
|
|
|
</page>
|
2010-01-12 12:45:02 +00:00
|
|
|
</notebook>
|
|
|
|
<newline/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-09 11:52:35 +00:00
|
|
|
|
2010-01-12 12:45:02 +00:00
|
|
|
<record id="view_project_phase_list" model="ir.ui.view">
|
|
|
|
<field name="name">project.phase.list</field>
|
|
|
|
<field name="model">project.phase</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="priority" eval="5"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Project Phases">
|
|
|
|
<field name="name"/>
|
2010-03-02 13:41:19 +00:00
|
|
|
<field name="project_id" on_change="onchange_project(project_id)"/>
|
2010-03-04 10:04:09 +00:00
|
|
|
<field name="responsible_id"/>
|
2010-01-12 12:45:02 +00:00
|
|
|
<field name="date_start"/>
|
2010-03-11 07:10:06 +00:00
|
|
|
<!--<field name="date_end"/>
|
2010-01-12 12:45:02 +00:00
|
|
|
<field name="duration"/>
|
2010-03-11 07:10:06 +00:00
|
|
|
<field name="product_uom"/>-->
|
|
|
|
<field name="state"/>
|
2010-01-12 12:45:02 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-03-04 10:04:09 +00:00
|
|
|
<record id="view_project_phase_calendar" model="ir.ui.view">
|
|
|
|
<field name="name">project.phase.calendar</field>
|
|
|
|
<field name="model">project.phase</field>
|
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar color="responsible_id" date_start="date_start" date_stop="date_end" day_length="12" string="Phases">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="project_id"/>
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_project_phase_gantt" model="ir.ui.view">
|
|
|
|
<field name="name">project.phase.gantt</field>
|
|
|
|
<field name="model">project.phase</field>
|
|
|
|
<field name="type">gantt</field>
|
|
|
|
<field eval="2" name="priority"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<gantt color="responsible_id" date_stop="date_end" date_start="date_start" string="Phases">
|
|
|
|
<level object="project.project" link="project_id" domain="[]">
|
|
|
|
<field name="name"/>
|
|
|
|
</level>
|
|
|
|
</gantt>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_project_phase_search" model="ir.ui.view">
|
|
|
|
<field name="name">project.phase.search</field>
|
|
|
|
<field name="model">project.phase</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Project Phases">
|
|
|
|
<group colspan="4" col="20">
|
2010-04-09 08:22:51 +00:00
|
|
|
<filter string="Current" domain="[('state','in',('open','draft'))]" help="Draft, Open and Pending Phases" icon="terp-project" default="1"/>
|
2010-03-11 07:10:06 +00:00
|
|
|
<filter string="In Progress" domain="[('state','=','open')]" help="Open Phases" icon="terp-project"/>
|
|
|
|
<filter string="Pending" domain="[('state','=','pending')]" help="Pending Phases" icon="terp-project"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="project_id" widget="selection">
|
|
|
|
<filter domain="[('project_id.user_id','=',uid)]" help="My Projects" icon="terp-project"/>
|
|
|
|
</field>
|
2010-05-14 09:50:39 +00:00
|
|
|
<field name="responsible_id" widget="selection"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="date_start"/>
|
2010-03-04 10:04:09 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group expand="1" string="Group By..." colspan="4" col="20">
|
|
|
|
<filter string="Project" icon="terp-project" domain="[]" context="{'group_by':'project_id'}"/>
|
2010-03-11 07:10:06 +00:00
|
|
|
<filter string="State" icon="terp-project" domain="[]" context="{'group_by':'state'}"/>
|
2010-03-04 10:04:09 +00:00
|
|
|
<filter string="User" icon="terp-project" domain="[]" context="{'group_by':'responsible_id'}"/>
|
|
|
|
<filter string="Start Date" icon="terp-project" domain="[]" context="{'group_by':'date_start'}"/>
|
2010-03-09 11:52:35 +00:00
|
|
|
</group>
|
2010-03-04 10:04:09 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 12:45:02 +00:00
|
|
|
|
|
|
|
<record id="act_project_phase" model="ir.actions.act_window">
|
2010-03-11 07:10:06 +00:00
|
|
|
<field name="name">Project Phases</field>
|
2010-01-12 12:45:02 +00:00
|
|
|
<field name="res_model">project.phase</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-03-04 10:04:09 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,gantt</field>
|
2010-05-14 09:15:02 +00:00
|
|
|
<field name="context">{'search_default_responsible_id':uid}</field>
|
2010-03-04 10:04:09 +00:00
|
|
|
<field name="search_view_id" ref="view_project_phase_search"/>
|
2010-01-12 12:45:02 +00:00
|
|
|
</record>
|
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
# ------------------------------------------------------
|
2010-03-09 11:52:35 +00:00
|
|
|
# Project
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
2010-03-03 06:52:52 +00:00
|
|
|
<record id="view_phase_project_form1" model="ir.ui.view">
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="name">phase.project.form1</field>
|
|
|
|
<field name="model">project.project</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="project.edit_project"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="priority" position="before">
|
|
|
|
<field name="resource_calendar_id"/>
|
|
|
|
</field>
|
2010-03-03 06:52:52 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-03 06:52:52 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
# ------------------------------------------------------
|
2010-03-09 11:52:35 +00:00
|
|
|
# Project Task
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<record id="view_project_phase_task_form1" model="ir.ui.view">
|
|
|
|
<field name="name">project.phase.task.form1</field>
|
|
|
|
<field name="model">project.task</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="project.view_task_form2"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="planned_hours" position="replace">
|
|
|
|
<field name="planned_hours" widget="float_time" attrs="{'readonly':[('state','!=','draft')]}" on_change="onchange_planned(project_id, user_id, planned_hours, effective_hours, date_start, occupation_rate)"/>
|
|
|
|
</field>
|
2010-03-02 13:41:19 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-02 13:41:19 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<record id="view_project_phase_task_form2" model="ir.ui.view">
|
|
|
|
<field name="name">project.phase.task.form2</field>
|
|
|
|
<field name="model">project.task</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="inherit_id" ref="project.view_task_form2"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="date_end" position = "after">
|
|
|
|
<field name="occupation_rate"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-02 13:41:19 +00:00
|
|
|
|
2010-01-12 12:45:02 +00:00
|
|
|
<act_window
|
|
|
|
id="project_phase_task_list"
|
|
|
|
name="Related Tasks"
|
|
|
|
res_model="project.task"
|
|
|
|
src_model="project.phase"
|
|
|
|
view_mode="tree,form"
|
2010-02-25 06:01:27 +00:00
|
|
|
domain="[('phase_id','=',active_id)]"/>
|
2010-01-20 13:00:15 +00:00
|
|
|
|
2010-03-04 05:34:20 +00:00
|
|
|
<act_window
|
|
|
|
domain="[('project_id', '=', active_id)]"
|
|
|
|
id="act_project_phases"
|
|
|
|
name="Phases"
|
|
|
|
res_model="project.phase"
|
|
|
|
src_model="project.project"
|
|
|
|
view_mode="tree,form"
|
|
|
|
view_type="form" />
|
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
# ------------------------------------------------------
|
2010-03-09 11:52:35 +00:00
|
|
|
# Menu Items
|
|
|
|
# ------------------------------------------------------
|
2010-01-12 12:45:02 +00:00
|
|
|
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem action="act_project_phase"
|
|
|
|
groups="base.group_extended"
|
|
|
|
id="menu_project_phase" parent="project.menu_project_management" sequence="4"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<menuitem icon="terp-project" id="base.menu_main_pm" name="Project Management" sequence="1"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<menuitem id="menu_pm_resources_project1"
|
|
|
|
groups="base.group_extended"
|
|
|
|
name="Resources" parent="base.menu_main_pm" sequence="2"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<menuitem action="resource.action_resource_resource_tree" id="menu_view_resource" parent="menu_pm_resources_project1" sequence="1"/>
|
|
|
|
<menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar" parent="menu_pm_resources_project1" sequence="1"/>
|
|
|
|
<menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves" parent="menu_pm_resources_project1" sequence="1"/>
|
2010-01-12 12:45:02 +00:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|