2010-03-17 06:56:13 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2010-07-13 12:03:01 +00:00
2010-04-06 16:15:10 +00:00
<menuitem id= "base.menu_project_report" name= "Reporting" parent= "base.menu_main_pm" sequence= "50" />
2010-03-17 06:56:13 +00:00
<record id= "view_task_project_user_tree" model= "ir.ui.view" >
<field name= "name" > report.project.task.user.tree</field>
<field name= "model" > report.project.task.user</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-05-24 11:15:07 +00:00
<tree string= "Tasks Analysis" >
<field name= "name" invisible= "1" />
2010-04-16 08:51:40 +00:00
<field name= "project_id" invisible= "1" />
<field name= "user_id" invisible= "1" />
<field name= "date_deadline" invisible= "1" />
2010-04-09 13:03:09 +00:00
<field name= "state" invisible= "1" />
2010-03-17 06:56:13 +00:00
<field name= "date_start" invisible= "1" />
<field name= "date_end" invisible= "1" />
2010-04-16 11:29:56 +00:00
<field name= "company_id" invisible= "1" groups= "base.group_multi_company" />
2010-04-09 08:55:14 +00:00
<field name= "partner_id" invisible= "1" />
2010-08-10 10:32:59 +00:00
<field name= "type_id" invisible= "1" />
2010-04-19 11:23:35 +00:00
<field name= "day" invisible= "1" />
2010-04-09 08:55:14 +00:00
<field name= "month" invisible= "1" />
2010-04-19 11:23:35 +00:00
<field name= "year" invisible= "1" />
2010-05-24 11:15:07 +00:00
<field name= "nbr" sum= '# of tasks' />
<field name= "no_of_days" sum= "# of Days" />
<field name= "total_hours" sum= 'Total Hours' />
2010-04-16 09:31:36 +00:00
<field name= "hours_planned" sum= 'Planned Hours' />
2010-05-24 11:15:07 +00:00
<field name= "remaining_hours" sum= 'Remaining Hours' />
2010-04-16 09:31:36 +00:00
<field name= "hours_effective" sum= 'Effective Hours' />
<field name= "hours_delay" sum= 'Avg. Plan.-Eff.' />
2010-05-24 11:15:07 +00:00
<field name= "opening_days" sum= 'Days to Open' />
<field name= "closing_days" sum= 'Days to Close' />
2010-06-04 17:54:17 +00:00
<field name= "delay_endings_days" sum= 'OverPass delay' />
2010-06-02 12:28:55 +00:00
<field name= "progress" sum= 'Progress' widget= 'progressbar' />
2010-03-17 06:56:13 +00:00
</tree>
</field>
</record>
2010-04-16 09:03:36 +00:00
<record id= "view_task_project_user_graph" model= "ir.ui.view" >
2010-04-16 08:34:06 +00:00
<field name= "name" > report.project.task.user.graph</field>
<field name= "model" > report.project.task.user</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
2010-07-09 07:27:50 +00:00
<graph string= "Tasks Analysis" type= "bar" >
<field name= "name" />
<field name= "state" group= "True" />
<field name= "no_of_days" operator= "+" />
</graph>
</field>
</record>
2010-04-16 08:34:06 +00:00
2010-03-17 06:56:13 +00:00
<record id= "view_task_project_user_search" model= "ir.ui.view" >
<field name= "name" > report.project.task.user.search</field>
<field name= "model" > report.project.task.user</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
2010-05-24 11:15:07 +00:00
<search string= "Tasks Analysis" >
2010-06-02 12:28:55 +00:00
<group colspan= "10" col= "12" >
2010-09-22 07:58:44 +00:00
<filter icon= "terp-go-year" string= " Year "
2010-09-22 14:00:24 +00:00
domain="[('date_start','< =', time.strftime('%%Y-%%m-%%d')),('date_start','> =',time.strftime('%%Y-01-01'))]"
2010-09-22 07:58:44 +00:00
help="Current Year"/>
<filter icon= "terp-go-month" string= " Month "
2010-04-16 10:42:47 +00:00
name="month"
2010-09-22 14:00:24 +00:00
domain="[('date_start','< =', time.strftime('%%Y-%%m-%%d')),('date_start','> =',time.strftime('%%Y-%%m-01'))]"
2010-09-22 07:58:44 +00:00
help="Current Month"/>
2010-06-01 10:47:58 +00:00
<filter icon= "terp-go-week"
2010-09-22 07:58:44 +00:00
string=" Month-1 "
2010-04-16 10:42:47 +00:00
separator="1"
2010-09-22 14:00:24 +00:00
domain="[('date_start','< =', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('date_start','> ',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"
2010-09-22 07:58:44 +00:00
help="Previous Month"/>
2010-04-16 10:42:47 +00:00
<separator orientation= "vertical" />
<filter string= "Draft"
2010-06-01 10:47:58 +00:00
icon="terp-document-new"
2010-04-16 10:42:47 +00:00
domain="[('state','=','draft')]"
help = "Draft tasks"/>
<filter string= "Current"
2010-06-01 10:47:58 +00:00
icon="terp-check"
2010-04-16 10:42:47 +00:00
domain="[('state', '=' ,'open')]"
help = "In progress tasks"/>
<filter string= "Pending"
2010-06-01 10:47:58 +00:00
icon="terp-gtk-media-pause"
2010-04-16 10:42:47 +00:00
domain="[('state','=','pending')]"
help = "Pending tasks"/>
2010-05-24 08:11:17 +00:00
<filter string= "Done"
2010-06-01 10:47:58 +00:00
icon="terp-dialog-close"
2010-05-24 08:11:17 +00:00
name="done"
domain="[('state','=','done')]"/>
2010-07-02 14:37:06 +00:00
<separator orientation= "vertical" />
2010-06-04 17:54:17 +00:00
<field name= "project_id" >
<filter icon= "terp-folder-blue"
string="My Projects"
2010-07-13 12:03:01 +00:00
help="My Projects" domain="[('project_id','=',uid)]"/>
2010-06-04 17:54:17 +00:00
</field>
2010-07-02 14:37:06 +00:00
2010-06-04 17:54:17 +00:00
<field name= "user_id" widget= "selection" >
2010-06-01 10:47:58 +00:00
<filter icon= "terp-personal"
2010-04-16 10:42:47 +00:00
string="My Task"
help = "My tasks"
domain="[('user_id','=',uid)]" />
2010-06-01 10:47:58 +00:00
<filter icon= "terp-personal-"
2010-04-21 13:34:44 +00:00
string="Non Assigned Tasks to users"
help="Non Assigned Tasks to users"
2010-04-16 10:42:47 +00:00
domain="[('user_id','=',False)]"/>
2010-06-04 17:54:17 +00:00
</field>
<field name= "partner_id" />
2010-04-09 08:55:14 +00:00
</group>
2010-05-26 13:06:02 +00:00
<newline />
2010-09-27 07:41:24 +00:00
<group expand= "0" string= "Extended Filters..." colspan= "10" col= "12" groups= "base.group_extended" >
<field name= "type_id" widget= "selection" />
<separator orientation= "vertical" />
<field name= "date_start" />
<field name= "date_deadline" />
<field name= "date_end" />
<separator orientation= "vertical" />
<field name= "priority" />
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
</group>
<newline />
2010-06-04 17:54:17 +00:00
<group expand= "1" string= "Group By..." colspan= "10" col= "12" >
<filter string= "Project" name= "project" icon= "terp-folder-blue" context= "{'group_by':'project_id'}" />
2010-06-01 10:47:58 +00:00
<filter string= "Task" icon= "terp-stock_align_left_24" context= "{'group_by':'name'}" />
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
2010-09-22 07:58:44 +00:00
<filter string= "Partner" icon= "terp-partner" context= "{'group_by':'partner_id'}" />
2010-09-15 13:39:35 +00:00
<filter string= "Assigned to" name= "User" icon= "terp-personal" context= "{'group_by':'user_id'}" />
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
2010-06-01 10:47:58 +00:00
<filter string= "State" icon= "terp-stock_effects-object-colorize" context= "{'group_by':'state'}" />
2010-06-02 13:34:11 +00:00
<filter string= "Company" icon= "terp-go-home" context= "{'group_by':'company_id'}" groups= "base.group_multi_company" />
2010-08-10 10:32:59 +00:00
<filter string= "Stage" icon= "terp-stage" context= "{'group_by':'type_id'}" />
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
2010-09-22 07:58:44 +00:00
<filter string= "Day" icon= "terp-go-today" context= "{'group_by':'day'}" help= "Current Day" />
<filter string= "Month" icon= "terp-go-month" context= "{'group_by':'month'}" help= "Current Month" />
<filter string= "Year" icon= "terp-go-year" context= "{'group_by':'year'}" help= "Current Year" />
2010-04-06 16:15:10 +00:00
</group>
</search>
2010-03-17 06:56:13 +00:00
</field>
</record>
2010-03-23 11:19:28 +00:00
<record id= "action_project_task_user_tree" model= "ir.actions.act_window" >
2010-05-24 11:15:07 +00:00
<field name= "name" > Tasks Analysis</field>
2010-03-17 06:56:13 +00:00
<field name= "res_model" > report.project.task.user</field>
<field name= "view_type" > form</field>
2010-04-16 09:06:46 +00:00
<field name= "view_mode" > tree,graph</field>
2010-03-17 06:56:13 +00:00
<field name= "search_view_id" ref= "view_task_project_user_search" />
2010-06-04 17:54:17 +00:00
<field name= "context" > {'search_default_month':1,'search_default_project':1,'group_by_no_leaf':1,'group_by':[]}</field>
2010-07-21 13:23:30 +00:00
<field name= "help" > Get detailed analysis by task</field>
2010-03-17 06:56:13 +00:00
</record>
2010-07-02 14:37:06 +00:00
2010-08-09 10:05:57 +00:00
<menuitem action= "action_project_task_user_tree" id= "menu_project_task_user_tree" parent= "base.menu_project_report" groups= "project.group_project_manager" />
2010-03-17 06:56:13 +00:00
2010-04-06 13:22:59 +00:00
<!-- Views and action for project dashboard -->
<record id= "view_project_vs_remaining_hours_tree" model= "ir.ui.view" >
<field name= "name" > project.vs.remaining.hour.tree</field>
2010-07-13 12:03:01 +00:00
<field name= "model" > project.vs.hours</field>
2010-04-06 13:22:59 +00:00
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-09-28 10:27:22 +00:00
<tree string= "Remaining Hours Per Project" colors= "pink:state=='draft';blue:state=='pending';black:state=='open';red:state=='cancelled';grey:state=='close';yellow:state=='template'" >
2010-04-06 13:22:59 +00:00
<field name= "project" />
<field name= "remaining_hours" />
<field name= "state" />
</tree>
</field>
</record>
<record id= "view_project_vs_remaining_hours_graph" model= "ir.ui.view" >
<field name= "name" > project.vs.remaining.hour.graph</field>
2010-07-13 12:03:01 +00:00
<field name= "model" > project.vs.hours</field>
2010-04-06 13:22:59 +00:00
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Project vs remaining hours" type= "bar" >
<field name= "project" />
2010-04-07 05:59:42 +00:00
<field name= "state" group= "True" />
2010-04-06 13:22:59 +00:00
<field name= "remaining_hours" operator= "+" />
</graph>
</field>
</record>
2010-07-09 07:27:50 +00:00
<record id= "action_project_vs_remaining_hours_graph" model= "ir.actions.act_window" >
2010-09-28 10:27:22 +00:00
<field name= "name" > Remaining Hours Per Project</field>
2010-07-13 12:03:01 +00:00
<field name= "res_model" > project.vs.hours</field>
2010-04-06 13:22:59 +00:00
<field name= "view_type" > form</field>
<field name= "view_mode" > graph,tree</field>
2010-07-13 12:03:01 +00:00
<field name= "domain" > [('uid','=',uid),('state','=','open')]</field>
2010-04-06 13:22:59 +00:00
<field name= "view_id" ref= "view_project_vs_remaining_hours_graph" />
</record>
2010-07-02 14:37:06 +00:00
2010-07-13 12:03:01 +00:00
<record id= "open_view_project_vs_remaining_hours_tree" model= "ir.actions.act_window.view" >
2010-09-30 05:35:50 +00:00
<field eval= "2" name= "sequence" />
2010-07-13 12:03:01 +00:00
<field name= "view_mode" > tree</field>
<field name= "view_id" ref= "view_project_vs_remaining_hours_tree" />
2010-10-04 08:54:25 +00:00
2010-07-13 12:03:01 +00:00
<field name= "act_window_id" ref= "action_project_vs_remaining_hours_graph" />
</record>
<record id= "open_view_project_vs_remaining_hours_graph" model= "ir.actions.act_window.view" >
2010-09-30 05:35:50 +00:00
<field eval= "1" name= "sequence" />
2010-07-13 12:03:01 +00:00
<field name= "view_mode" > graph</field>
<field name= "view_id" ref= "view_project_vs_remaining_hours_graph" />
<field name= "act_window_id" ref= "action_project_vs_remaining_hours_graph" />
</record>
2010-04-06 13:22:59 +00:00
<!-- Views and action for project issue dashboard -->
2010-07-09 07:27:50 +00:00
<record id= "view_task_by_days_tree" model= "ir.ui.view" >
2010-04-06 13:22:59 +00:00
<field name= "name" > task.by.days.tree</field>
<field name= "model" > task.by.days</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Task By Days" >
<field name= "day" />
<field name= "total_task" />
2010-04-07 05:59:42 +00:00
<field name= "state" />
2010-04-06 13:22:59 +00:00
</tree>
</field>
</record>
<record id= "view_task_by_days_graph" model= "ir.ui.view" >
<field name= "name" > task.by.days.graph</field>
<field name= "model" > task.by.days</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Task By Days" type= "bar" >
<field name= "day" />
2010-04-07 05:59:42 +00:00
<field name= "state" group= "True" />
2010-04-09 10:13:48 +00:00
<field name= "project_id" group= "True" />
2010-04-06 13:22:59 +00:00
<field name= "total_task" operator= "+" />
</graph>
</field>
</record>
<record id= "action_task_by_days_graph" model= "ir.actions.act_window" >
<field name= "name" > Task By Days</field>
<field name= "res_model" > task.by.days</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > graph,tree</field>
2010-04-13 10:19:15 +00:00
<field name= "domain" > [('day','< =',time.strftime('%Y-%m-%d')),('day','> =', time.strftime('%Y-%m-%d', time.localtime(time.time()-(15*24*3600))))]</field>
2010-04-06 13:22:59 +00:00
<field name= "view_id" ref= "view_task_by_days_graph" />
</record>
<!-- Views and action for project dashboard -->
2010-07-13 12:03:01 +00:00
<record id= "view_project_vs_planned_total_hours_tree" model= "ir.ui.view" >
<field name= "name" > project.vs.planned.total.hour.tree</field>
<field name= "model" > project.vs.hours</field>
2010-04-06 13:22:59 +00:00
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-10-01 07:36:35 +00:00
<tree string= "Project vs Planned and Total Hours" colors= "pink:state=='draft';blue:state=='pending';black:state=='open';red:state=='cancelled';grey:state=='close';yellow:state=='template'" >
2010-07-13 12:03:01 +00:00
<field name= "project" />
<field name= "planned_hours" />
<field name= "total_hours" />
2010-04-06 13:22:59 +00:00
</tree>
</field>
</record>
2010-07-13 12:03:01 +00:00
<record id= "view_project_vs_planned_total_hours_graph" model= "ir.ui.view" >
<field name= "name" > project.vs.planned.total.hour.graph</field>
<field name= "model" > project.vs.hours</field>
2010-04-06 13:22:59 +00:00
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
2010-10-01 07:36:35 +00:00
<graph string= "Project vs Planned and Total Hours" type= "bar" >
2010-07-13 12:03:01 +00:00
<field name= "project" />
<field name= "planned_hours" operator= "+" />
<field name= "total_hours" operator= "+" />
2010-04-06 13:22:59 +00:00
</graph>
</field>
</record>
2010-07-13 12:03:01 +00:00
<record id= "action_project_vs_planned_total_hours_graph" model= "ir.actions.act_window" >
2010-10-04 08:54:25 +00:00
2010-09-28 10:27:22 +00:00
<field name= "name" > Projects: Planned Vs Total hours</field>
2010-07-13 12:03:01 +00:00
<field name= "res_model" > project.vs.hours</field>
2010-04-06 13:22:59 +00:00
<field name= "view_type" > form</field>
<field name= "view_mode" > graph,tree</field>
2010-07-13 18:41:53 +00:00
<field name= "domain" > [('uid','=',uid),('state','=','open')]</field>
2010-07-13 12:03:01 +00:00
<field name= "view_id" ref= "view_project_vs_planned_total_hours_graph" />
2010-04-06 13:22:59 +00:00
</record>
2010-05-26 13:06:02 +00:00
2010-07-13 12:03:01 +00:00
<record id= "open_view_project_vs_planned_total_hours_tree" model= "ir.actions.act_window.view" >
<field eval= "1" name= "sequence" />
2010-09-28 10:27:22 +00:00
<field name= "view_mode" > graph</field>
<field name= "view_id" ref= "view_project_vs_planned_total_hours_graph" />
2010-07-13 12:03:01 +00:00
<field name= "act_window_id" ref= "action_project_vs_planned_total_hours_graph" />
</record>
<record id= "open_view_project_vs_planned_total_hours_graph" model= "ir.actions.act_window.view" >
2010-09-30 05:35:50 +00:00
<field eval= "1" name= "sequence" />
2010-07-13 12:03:01 +00:00
<field name= "view_mode" > graph</field>
<field name= "view_id" ref= "view_project_vs_planned_total_hours_graph" />
<field name= "act_window_id" ref= "action_project_vs_planned_total_hours_graph" />
</record>
2010-03-17 06:56:13 +00:00
</data>
</openerp>