summaryrefslogtreecommitdiff
path: root/addons/hr_timesheet/data/hr_timesheet_data.xml
blob: 7a8521b09f7f592ab90b60f51384b83eb95b71d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Set the JS widget -->
    <record id="uom.product_uom_day" model="uom.uom">
        <field name="timesheet_widget">float_toggle</field>
    </record>

    <record id="uom.product_uom_hour" model="uom.uom">
        <field name="timesheet_widget">float_time</field>
    </record>

    <!-- Force Analytic account creation for projects allowing timesheet (default is True) -->
    <function
        model="project.project"
        name="_init_data_analytic_account"
        eval="[]"/>

    <data noupdate="1">
        <record id="ir_config_parameter_timesheet_rounding" model="ir.config_parameter">
            <field name="key">hr_timesheet.timesheet_rounding</field>
            <field name="value">15</field>
        </record>
        <record id="ir_config_parameter_timesheet_min_duration" model="ir.config_parameter">
            <field name="key">hr_timesheet.timesheet_min_duration</field>
            <field name="value">15</field>
        </record>
    </data>

</odoo>