* removed hr.timesheet.report as it's mostly redundant with regular
views on analytic lines
* moved "detailed activities" to reporting, renamed it, added a pivot
view
* redirected timesheet link from HR dashboard to the detailed activities
action
- added department_id to analytic lines as that link is filtered by
department
- fixed bug in kanban view: button context wasn't evaluated in the
correct context
25 lines
970 B
XML
25 lines
970 B
XML
<odoo>
|
|
<!--Hr Department Inherit Kanban view-->
|
|
<record id="hr_department_view_kanban" model="ir.ui.view">
|
|
<field name="name">hr.department.kanban.inherit</field>
|
|
<field name="model">hr.department</field>
|
|
<field name="inherit_id" ref="hr.hr_department_view_kanban"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
|
|
<xpath expr="//div[contains(@class, 'o_kanban_manage_reports')]" position="inside">
|
|
<div class="row">
|
|
<div class="col-xs-12 text-left">
|
|
<a name="%(act_hr_timesheet_report)d" type="action"
|
|
context="{ 'search_default_department_id': [active_id], 'default_department_id': active_id}">
|
|
Timesheets
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
|
|
</data>
|
|
</field>
|
|
</record>
|
|
</odoo>
|