summaryrefslogtreecommitdiff
path: root/addons/hr_timesheet/data/hr_timesheet_data.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_timesheet/data/hr_timesheet_data.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/hr_timesheet/data/hr_timesheet_data.xml')
-rw-r--r--addons/hr_timesheet/data/hr_timesheet_data.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/addons/hr_timesheet/data/hr_timesheet_data.xml b/addons/hr_timesheet/data/hr_timesheet_data.xml
new file mode 100644
index 00000000..7a8521b0
--- /dev/null
+++ b/addons/hr_timesheet/data/hr_timesheet_data.xml
@@ -0,0 +1,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>