summaryrefslogtreecommitdiff
path: root/addons/project_timesheet_holidays/views
diff options
context:
space:
mode:
Diffstat (limited to 'addons/project_timesheet_holidays/views')
-rw-r--r--addons/project_timesheet_holidays/views/hr_holidays_views.xml20
-rw-r--r--addons/project_timesheet_holidays/views/res_config_settings_views.xml26
2 files changed, 46 insertions, 0 deletions
diff --git a/addons/project_timesheet_holidays/views/hr_holidays_views.xml b/addons/project_timesheet_holidays/views/hr_holidays_views.xml
new file mode 100644
index 00000000..845b3e11
--- /dev/null
+++ b/addons/project_timesheet_holidays/views/hr_holidays_views.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="hr_holiday_status_view_form_inherit" model="ir.ui.view">
+ <field name="name">hr.leave.type.form</field>
+ <field name="model">hr.leave.type</field>
+ <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//group[@name='calendar']" position="after">
+ <group name="timesheet" string="Timesheet" groups="base.group_no_one">
+ <field name="timesheet_project_id" context="{'active_test': False}"/>
+ <field name="timesheet_task_id" context="{'active_test': False}"/>
+ <field name="timesheet_generate" invisible="1"/>
+ </group>
+
+ </xpath>
+ </field>
+ </record>
+
+</odoo> \ No newline at end of file
diff --git a/addons/project_timesheet_holidays/views/res_config_settings_views.xml b/addons/project_timesheet_holidays/views/res_config_settings_views.xml
new file mode 100644
index 00000000..1b9aa047
--- /dev/null
+++ b/addons/project_timesheet_holidays/views/res_config_settings_views.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<odoo>
+
+ <record id="res_config_settings_view_form" model="ir.ui.view">
+ <field name="name">res.config.settings.view.form.inherit.project.timesheet.holidays</field>
+ <field name="model">res.config.settings</field>
+ <field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//div[@id='module_project_timesheet_holidays']" position="replace">
+ <div attrs="{'invisible': [('module_project_timesheet_holidays','=',False)]}">
+ <div class="row mt16">
+ <div class="w-100">
+ <label string="Project" for="leave_timesheet_project_id" class="col-3 col-lg-3 o_light_label"/>
+ <field name="leave_timesheet_project_id" context="{'active_test': False}" class="oe_inline"/>
+ </div>
+ <div class="w-100">
+ <label string="Task" for="leave_timesheet_task_id" class="col-3 col-lg-3 o_light_label"/>
+ <field name="leave_timesheet_task_id" context="{'active_test': False, 'default_project_id': leave_timesheet_project_id}" class="oe_inline"/>
+ </div>
+ </div>
+ </div>
+ </xpath>
+ </field>
+ </record>
+
+</odoo>