From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/hr_holidays/views/hr_holidays_views.xml | 103 +++ .../views/hr_leave_allocation_views.xml | 454 +++++++++++++ addons/hr_holidays/views/hr_leave_template.xml | 27 + addons/hr_holidays/views/hr_leave_type_views.xml | 130 ++++ addons/hr_holidays/views/hr_leave_views.xml | 752 +++++++++++++++++++++ addons/hr_holidays/views/hr_views.xml | 322 +++++++++ addons/hr_holidays/views/mail_activity_views.xml | 11 + addons/hr_holidays/views/resource_views.xml | 14 + 8 files changed, 1813 insertions(+) create mode 100644 addons/hr_holidays/views/hr_holidays_views.xml create mode 100644 addons/hr_holidays/views/hr_leave_allocation_views.xml create mode 100644 addons/hr_holidays/views/hr_leave_template.xml create mode 100644 addons/hr_holidays/views/hr_leave_type_views.xml create mode 100644 addons/hr_holidays/views/hr_leave_views.xml create mode 100644 addons/hr_holidays/views/hr_views.xml create mode 100644 addons/hr_holidays/views/mail_activity_views.xml create mode 100644 addons/hr_holidays/views/resource_views.xml (limited to 'addons/hr_holidays/views') diff --git a/addons/hr_holidays/views/hr_holidays_views.xml b/addons/hr_holidays/views/hr_holidays_views.xml new file mode 100644 index 00000000..be5bf38f --- /dev/null +++ b/addons/hr_holidays/views/hr_holidays_views.xml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/hr_holidays/views/hr_leave_allocation_views.xml b/addons/hr_holidays/views/hr_leave_allocation_views.xml new file mode 100644 index 00000000..9b62757d --- /dev/null +++ b/addons/hr_holidays/views/hr_leave_allocation_views.xml @@ -0,0 +1,454 @@ + + + + + hr.holidays.filter_allocations + hr.leave.allocation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hr.leave.allocation.view.form + hr.leave.allocation + 32 + +
+ + + +
+
+ +
+ +
+
+

+
+ + + + + + + + + +
+
+
+ + + Days + Hours +
+
+ + + + +
+ +
+
+ + + +
+ +
+
+ + + hr.leave.allocation.view.form.manager + hr.leave.allocation + + primary + 16 + + + + + + + + + + + + + + + + hr.leave.allocation.view.activity + hr.leave.allocation + + + + +
+ +
+ + + days + + +
+
+
+
+
+
+ + + My Allocations + hr.leave.allocation + tree,kanban,form,activity + + +

+ Create a new time off allocation request +

+ Time Off Officers allocate time off days to employees (e.g. paid time off).
+ Employees request allocations to Time Off Officers (e.g. recuperation days). +

+
+ {} + [('employee_id.user_id', '=', uid)] +
+ + 1 + tree + + + + + 2 + form + + + + + + All Allocations + hr.leave.allocation + tree,kanban,form,activity + {} + [] + + +

+ Create a new time off allocation request +

+ Time Off Officers allocate time off days to employees (e.g. paid time off).
+ Employees request allocations to Time Off Officers (e.g. recuperation days). +

+
+
+ + + Allocations + hr.leave.allocation + tree,form,kanban,activity + {'search_default_managed_people': 1} + [] + + +

+ Create a new time off allocation +

+ Time Off Officers allocate time off days to employees (e.g. paid time off).
+ Employees request allocations to Time Off Officers (e.g. recuperation days). +

+
+
+ + + Approve Allocations + + + list + code + action = records.action_approve() + + + + hr.leave.view.form.dashboard + hr.leave.allocation + + primary + 100 + + + 1 + +
+ 1 +
+
+
+ +
diff --git a/addons/hr_holidays/views/hr_leave_template.xml b/addons/hr_holidays/views/hr_leave_template.xml new file mode 100644 index 00000000..cfdeeac2 --- /dev/null +++ b/addons/hr_holidays/views/hr_leave_template.xml @@ -0,0 +1,27 @@ + + + + diff --git a/addons/hr_holidays/views/hr_leave_type_views.xml b/addons/hr_holidays/views/hr_leave_type_views.xml new file mode 100644 index 00000000..3d0364a3 --- /dev/null +++ b/addons/hr_holidays/views/hr_leave_type_views.xml @@ -0,0 +1,130 @@ + + + + + hr.leave.type.filter + hr.leave.type + + + + + + + + + + + + + hr.leave.type.form + hr.leave.type + +
+ +
+ + +
+ +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + hr.leave.type.kanban + hr.leave.type + + + + +
+
+ +
+
+ Max Time Off: + Time Off Taken: +
+
+
+
+
+
+
+ + + hr.leave.type.normal.tree + hr.leave.type + + + + + + + + + + + + + + + + Time Off Types + ir.actions.act_window + hr.leave.type + tree,kanban,form + + +
diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml new file mode 100644 index 00000000..42fb80d3 --- /dev/null +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -0,0 +1,752 @@ + + + + + Report to Payslip + + + code + + if records: + records.write({'payslip_status': True}) + + + + + Manager Approval + + + code + + if records: + records.action_approve() + + + + HR Approval + + + code + + if records: + records.action_validate() + + + + + hr.holidays.graph + hr.leave + + + + + + + + + + + + hr.holidays.filter + hr.leave + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hr.leave.view.kanban + hr.leave + + + + + + + + + + + + +
+
+
+ +
+
+ days + +
+ +
+ +
+
+
+
+
+ from + + to + +
+
+
+
+
+ + + +
+
+
+
+ + + +
+
+
+ + + + + + + + hr.leave.view.activity + hr.leave + + + + + + + +
+ +
+ + + days + +
+
From:
+
To:
+
+
+
+
+
+
+
+ + + hr.leave.view.form + hr.leave + 32 + +
+ + +
+
+ + + + + +
+ +

+ +

+

+ +

+
+ + + + + + + + +
+
+ + + +
+ +
+
+ + + hr.leave.view.form.dashboard + hr.leave + + primary + 100 + + + 1 + + + + + + hr.leave.view.dashboard + hr.leave + + + + + + + + + + + hr.leave.view.form.dashboard.new.time.off + hr.leave + + primary + 17 + + +
+
+
+
+
+ + + hr.leave.view.form.manager + hr.leave + + primary + 16 + +
+ +
+

+ +

+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + hr.leave.view.calendar + hr.leave + + + + + + + + + + + hr.holidays.view.tree + hr.leave + + + + + + + + + + + + + + + + + +
+ + + + + hr.employee.tree.leave + hr.employee + + + + + + + + + + hr.employee.public.leave.form.inherit + hr.employee.public + + + + + + + + + + + + + + + + + hr.user.preferences.view.form.leave.inherit + res.users + + + + + + + + + + diff --git a/addons/hr_holidays/views/mail_activity_views.xml b/addons/hr_holidays/views/mail_activity_views.xml new file mode 100644 index 00000000..5502e95f --- /dev/null +++ b/addons/hr_holidays/views/mail_activity_views.xml @@ -0,0 +1,11 @@ + + + + + Activity Types + mail.activity.type + tree,form + ['|', ('res_model_id', '=', False), ('res_model_id.model', 'in', ['hr.leave', 'hr.leave.allocation'])] + {'default_res_model': 'hr.leave'} + + diff --git a/addons/hr_holidays/views/resource_views.xml b/addons/hr_holidays/views/resource_views.xml new file mode 100644 index 00000000..f6577480 --- /dev/null +++ b/addons/hr_holidays/views/resource_views.xml @@ -0,0 +1,14 @@ + + + + + resource.calendar.leaves.form.inherit + resource.calendar.leaves + + + + + + + + \ No newline at end of file -- cgit v1.2.3