You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.5 KiB
33 lines
1.5 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Creating new calendar view in account_analytic_line-->
|
|
<record id="hr_timesheet_view_calendar" model="ir.ui.view">
|
|
<field name="name">hr.timesheet.calendar</field>
|
|
<field name="model">account.analytic.line</field>
|
|
<field name="priority" eval="2"/>
|
|
<field name="arch" type="xml">
|
|
<calendar date_start="date" date_delay="unit_amount" color="project_id" mode="month">
|
|
<field name="date"/>
|
|
<field name="employee_id" filters="1"/>
|
|
<field name="project_id" filters="1"/>
|
|
<field name="task_id" filters="1"
|
|
context="{'default_project_id': project_id}"/>
|
|
<field name="name"/>
|
|
<field name="unit_amount"
|
|
widget="timesheet_uom"
|
|
sum="Total"
|
|
decoration-danger="unit_amount > 24 or unit_amount < 0"/>
|
|
<field name="company_id"/>
|
|
<field name="user_id" filters="1"/>
|
|
</calendar>
|
|
</field>
|
|
</record>
|
|
|
|
<!--Adding the new calendar view to action-->
|
|
<record id="hr_timesheet.timesheet_action_all" model="ir.actions.act_window">
|
|
<field name="view_mode">calendar,list,form,kanban,pivot,graph</field>
|
|
</record>
|
|
<record id="hr_timesheet.act_hr_timesheet_line" model="ir.actions.act_window">
|
|
<field name="view_mode">calendar,list,form,kanban,pivot,graph</field>
|
|
</record>
|
|
</odoo>
|
|
|