[MOD,IMP] board_project : Improvement in project dashboard
bzr revid: vir@tinyerp.com-20100201112929-y1crg6bj048ugdtf
This commit is contained in:
parent
2044339a0d
commit
c5662acf2a
|
@ -40,7 +40,9 @@ This module implements a dashboard for project member that includes:
|
|||
'report_analytic_planning',
|
||||
'report_analytic_line',
|
||||
'report_task',
|
||||
'hr_timesheet_sheet'
|
||||
'hr_timesheet_sheet',
|
||||
'crm_project',
|
||||
'resource'
|
||||
],
|
||||
'update_xml': ['board_project_view.xml', 'board_project_manager_view.xml'],
|
||||
'demo_xml': ['board_project_demo.xml'],
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<form string="Project manager board">
|
||||
<hpaned>
|
||||
<child1>
|
||||
<action colspan="4" height="220" name="%(act_my_project)d" string="My projects" width="510"/>
|
||||
<!-- <action colspan="4" height="220" name="%(act_my_project)d" string="My projects" width="510"/>-->
|
||||
|
||||
<action colspan="4" height="150" name="%(act_my_account)d" string="My accounts to invoice"/>
|
||||
|
||||
|
@ -61,7 +61,7 @@
|
|||
|
||||
</child1>
|
||||
<child2>
|
||||
<button colspan="4" icon="terp-partner" name="%(open_board_project)d" string="My tasks board" type="action"/>
|
||||
<button colspan="4" icon="terp-partner" name="%(open_board_project)d" string="My tasks board" type="action"/>
|
||||
|
||||
|
||||
<action colspan="4" name="%(report_analytic_planning.action_account_analytic_planning_stat_form)d" string="My Project's planning" domain="[('manager_id','=',uid),('planning_id.state','<>','cancel')]"/>
|
||||
|
|
|
@ -22,6 +22,23 @@
|
|||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Editable My task -->
|
||||
<record id="view_task_tree" model="ir.ui.view">
|
||||
<field name="name">project.task.tree</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="type">tree</field>
|
||||
<field eval="99" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree editable="top" colors="red:date_deadline<current_date;blue:date_deadline==current_date;black:date_deadline>current_date" string="My Tasks">
|
||||
<field name="name"/>
|
||||
<field name="project_id"/>
|
||||
<field name="date_deadline"/>
|
||||
<field name="planned_hours"/>
|
||||
<field name="effective_hours"/>
|
||||
<field name="priority"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_view_task_tree" model="ir.actions.act_window">
|
||||
<field name="name">My Open Tasks</field>
|
||||
<field name="res_model">project.task</field>
|
||||
|
@ -47,6 +64,25 @@
|
|||
<field name="domain">[('type','=','Project')]</field>
|
||||
</record>
|
||||
|
||||
<!--Actions for deshboard -->
|
||||
|
||||
<record id="action_view_project_editable_messages_tree" model="ir.actions.act_window">
|
||||
<field name="name">Messages</field>
|
||||
<field name="res_model">project.message</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="project.view_project_editable_message_tree"/>
|
||||
</record>
|
||||
|
||||
<record id="action_view_project_member_tree" model="ir.actions.act_window">
|
||||
<field name="name">Project's Members</field>
|
||||
<field name="res_model">resource.resource</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[('resource_type','=','user')]</field>
|
||||
<field name="view_id" ref="resource.view_project_member_tree"/>
|
||||
</record>
|
||||
|
||||
<record id="board_project_form" model="ir.ui.view">
|
||||
<field name="name">board.project.form</field>
|
||||
<field name="model">board.board</field>
|
||||
|
@ -56,12 +92,11 @@
|
|||
<hpaned>
|
||||
<child1>
|
||||
<action colspan="4" height="220" name="%(action_view_task_tree)d" string="My Open Tasks" width="510"/>
|
||||
<action colspan="4" height="150" name="%(action_view_task_tree_deadline)d" string="My Deadlines"/>
|
||||
<action colspan="4" height="150" name="%(action_view_board_note_tree)d" string="Public Notes"/>
|
||||
</child1>
|
||||
<action colspan="4" height="150" name="%(action_view_project_member_tree)d" string="Members list of project"/>
|
||||
</child1>
|
||||
<child2>
|
||||
<action colspan="4" name="%(report_analytic_planning.action_account_analytic_planning_stat_form)d" string="My Planning" domain="[('user_id','=',uid),('planning_id.state','<>','cancel')]"/>
|
||||
<action colspan="4" name="%(report_timesheet.action_timesheet_user_stat_all)d" string="Timesheets"/>
|
||||
<action colspan="4" name="%(action_view_project_editable_messages_tree)d" string="Messages"/>
|
||||
<action colspan="4" name="%(crm_project.crm_case_categ_act0)d" string="Issues"/>
|
||||
</child2>
|
||||
</hpaned>
|
||||
</form>
|
||||
|
|
|
@ -684,5 +684,20 @@
|
|||
|
||||
<act_window domain="[('user_id', '=', active_id),('date', '>=', time.strftime('%Y-%m-01'))]" id="act_res_users_2_project_task_work_month" name="Month works" res_model="project.task.work" src_model="res.users" view_mode="tree,form" view_type="form"/>
|
||||
|
||||
<!-- Editable list of messages -->
|
||||
<record id="view_project_editable_message_tree" model="ir.ui.view">
|
||||
<field name="name">project.message.form</field>
|
||||
<field name="model">project.message</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Messages" editable="top">
|
||||
<field name="subject" select="1"/>
|
||||
<field name="description" select="1"/>
|
||||
<field name="project_id" select="1"/>
|
||||
<field name="date" select="1"/>
|
||||
<field name="user_id" select="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -91,11 +91,10 @@ class report_closed_task(osv.osv):
|
|||
tsk.date_deadline as date_deadline, tsk.planned_hours as planned_hours,
|
||||
tsk.delay_hours as delay_hours, tsk.progress as progress,
|
||||
tsk.priority as priority, tsk.state as state,
|
||||
tsk.remaining_hours as remaining_hours, tsk.date_end as date_close
|
||||
tsk.remaining_hours as remaining_hours
|
||||
from
|
||||
project_task tsk
|
||||
where
|
||||
(tsk.date_end <= CURRENT_DATE AND tsk.date_end > (CURRENT_DATE-15))
|
||||
|
||||
)
|
||||
''')
|
||||
report_closed_task()
|
||||
|
|
|
@ -162,5 +162,17 @@
|
|||
|
||||
<menuitem action="action_resource_calendar_leave_tree" id="menu_resource_calendar_leave_tree" parent="base.menu_pm_resources"/>
|
||||
|
||||
<!-- project member -->
|
||||
<record id="view_project_member_tree" model="ir.ui.view">
|
||||
<field name="name">project.member.tree</field>
|
||||
<field name="model">resource.resource</field>
|
||||
<field name="type">tree</field>
|
||||
<field eval="99" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Project's Members">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue