133 lines
3.7 KiB
XML
133 lines
3.7 KiB
XML
<?xml version="1.0"?>
|
|
<terp>
|
|
<data>
|
|
|
|
<record model="board.note.type" id="note_project_type">
|
|
<field name="name">Project managers</field>
|
|
</record>
|
|
|
|
<!--
|
|
Board for project managers
|
|
-->
|
|
<act_window name="My projects"
|
|
domain="[('manager', '=', uid)]"
|
|
res_model="project.project"
|
|
view_type="form"
|
|
view_mode="tree,form"
|
|
id="act_my_project"/>
|
|
|
|
<act_window name="My accounts to invoice"
|
|
domain="[('user_id','=',uid),('state','<>','close')]"
|
|
res_model="account.analytic.account"
|
|
view_type="form"
|
|
view_mode="tree,form"
|
|
view_id="view_account_analytic_simplified"
|
|
id="act_my_account"/>
|
|
|
|
<record model="ir.actions.act_window" id="action_project_pipeline_user">
|
|
<field name="name">Pipeline of tasks</field>
|
|
<field name="res_model">report.task.user.pipeline.open</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">graph,tree</field>
|
|
<field name="domain">[('task_state','<>','cancelled'),('task_state','<>','done'),('user_id','in',department_users_get())]</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="hr_timesheet_sheet_tree">
|
|
<field name="name">hr.timesheet.sheet.tree.simplified.board</field>
|
|
<field name="model">hr_timesheet_sheet.sheet</field>
|
|
<field name="type">tree</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Timesheets">
|
|
<field name="date_from" />
|
|
<field name="user_id"/>
|
|
<field name="name" />
|
|
<field name="total_attendance"/>
|
|
<field name="total_timesheet"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record model="ir.actions.act_window" id="act_hr_timesheet_sheet">
|
|
<field name="name">Timesheets</field>
|
|
<field name="res_model">hr_timesheet_sheet.sheet</field>
|
|
<field name="domain">[('state','<>','done'),('user_id','in',department_users_get())]</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_id" ref="hr_timesheet_sheet_tree"/>
|
|
</record>
|
|
|
|
|
|
<record model="ir.ui.view" id="board_project_manager_form">
|
|
<field name="name">board.project.manager.form</field>
|
|
<field name="model">board.board</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Project manager board">
|
|
<hpaned>
|
|
<child1>
|
|
<action
|
|
string="My projects"
|
|
name="%(act_my_project)d"
|
|
colspan="4"
|
|
height="220"
|
|
width="510"/>
|
|
|
|
<action
|
|
string="My accounts to invoice"
|
|
name="%(act_my_account)d"
|
|
height="150"
|
|
colspan="4"/>
|
|
|
|
<action
|
|
string="User's timesheets"
|
|
name="%(act_hr_timesheet_sheet)d"
|
|
colspan="4"
|
|
height="150"/>
|
|
|
|
</child1>
|
|
<child2>
|
|
<button
|
|
string="My tasks board"
|
|
name="%(open_board_project)d"
|
|
icon="gtk-ok"
|
|
type="action"
|
|
colspan="4"/>
|
|
|
|
|
|
<action
|
|
string="My project's planning"
|
|
name="%(report_analytic_planning.action_account_analytic_planning_stat_my_manager_form)d"
|
|
colspan="4"/>
|
|
|
|
<action
|
|
string="My user's pipeline"
|
|
name="%(action_project_pipeline_user)d"
|
|
colspan="4"/>
|
|
|
|
</child2>
|
|
</hpaned>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="open_board_project_manager">
|
|
<field name="name">Project Manager Dashboard</field>
|
|
<field name="res_model">board.board</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="usage">menu</field>
|
|
<field name="view_id" ref="board_project_manager_form"/>
|
|
</record>
|
|
|
|
<menuitem
|
|
name="Dashboards/Project/Project Manager"
|
|
action="open_board_project_manager"
|
|
sequence="1"
|
|
id="menu_board_project_manager"
|
|
icon="terp-graph"/>
|
|
|
|
|
|
|
|
|
|
</data>
|
|
</terp>
|