flectra/addons/hr_expense/views/hr_dashboard.xml
2018-01-16 02:34:37 -08:00

51 lines
2.3 KiB
XML

<flectra>
<!--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="groups_id" eval="[(4,ref('hr_expense.group_hr_expense_user'))]"/>
<field name="arch" type="xml">
<data>
<xpath expr="//templates" position="before">
<field name="expense_sheets_to_approve_count"/>
</xpath>
<xpath expr="//div[hasclass('o_kanban_primary_right')]" position="inside">
<div t-if="record.expense_sheets_to_approve_count.raw_value > 0" class="row">
<div class="col-xs-9">
<a name="%(action_hr_expense_sheet_department_to_approve)d" type="action">
Expense Reports
</a>
</div>
<div class="col-xs-3">
<t t-esc="record.expense_sheets_to_approve_count.raw_value"/>
</div>
</div>
</xpath>
<xpath expr="//div[hasclass('o_kanban_manage_to_approve')]" position="inside">
<div class="row">
<div class="col-xs-12 text-left">
<a name="%(action_hr_expense_sheet_department_to_approve)d" type="action">
<t t-esc="record.expense_sheets_to_approve_count.raw_value or 0"/> Expense Reports
</a>
</div>
</div>
</xpath>
<xpath expr="//div[hasclass('o_kanban_manage_reports')]" position="inside">
<div class="row">
<div class="col-xs-12 text-left">
<a name="%(action_hr_expense_sheet_department_filtered)d" type="action">
Expense Reports
</a>
</div>
</div>
</xpath>
</data>
</field>
</record>
</flectra>