[IMP] hr_timesheet: improve add pivot and graph view for my timesheet

Improve added pivot and graph view for my timesheet in the timesheet app.
- Before this commit there was no pivot and graph view for my timseet in
  timesheet app.
- In this commit pivot and graph view is added or my timseet in
  timesheet app.

Task-3479322

closes odoo/odoo#134495

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
padh-odoo
2023-10-13 21:11:50 +00:00
committed by Xavier Bol (xbo)
parent 614dc4a517
commit f610fb1d31
@@ -279,7 +279,7 @@
<record id="act_hr_timesheet_line" model="ir.actions.act_window">
<field name="name">My Timesheets</field>
<field name="res_model">account.analytic.line</field>
<field name="view_mode">tree,form,kanban</field>
<field name="view_mode">tree,form,kanban,pivot,graph</field>
<field name="domain">[('project_id', '!=', False), ('user_id', '=', uid)]</field>
<field name="context">{
"search_default_week":1,
@@ -317,6 +317,20 @@
<field name="act_window_id" ref="act_hr_timesheet_line"/>
</record>
<record id="act_hr_timesheet_line_view_pivot" model="ir.actions.act_window.view">
<field name="view_mode">pivot</field>
<field name="sequence" eval="7"/>
<field name="view_id" ref="view_my_timesheet_line_pivot"/>
<field name="act_window_id" ref="act_hr_timesheet_line"/>
</record>
<record id="act_hr_timesheet_line_view_graph" model="ir.actions.act_window.view">
<field name="view_mode">graph</field>
<field name="sequence" eval="8"/>
<field name="view_id" ref="view_hr_timesheet_line_graph_my"/>
<field name="act_window_id" ref="act_hr_timesheet_line"/>
</record>
<record id="timesheet_action_task" model="ir.actions.act_window">
<field name="name">Task's Timesheets</field>
<field name="res_model">account.analytic.line</field>