From 0e595ee81a64c5d63cff535c560a77e5da1eaa41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 17 Nov 2017 12:58:40 +0100 Subject: [PATCH] [MOV] hr_holidays: split data to separate mail data from other data It is simpler to have data split by main model or application like we already do for models and views. It allows to easily have an overview of data a module holds. As we will work on mail related data like adding activities or tweaking subtypes and templates, having them all in a single file and not lost between other data helps finding and working with it. This commit only moves code. No functional change should occur. --- addons/hr_holidays/__manifest__.py | 1 + addons/hr_holidays/data/hr_holidays_data.xml | 128 ------------------ addons/hr_holidays/data/mail_data.xml | 132 +++++++++++++++++++ 3 files changed, 133 insertions(+), 128 deletions(-) create mode 100644 addons/hr_holidays/data/mail_data.xml diff --git a/addons/hr_holidays/__manifest__.py b/addons/hr_holidays/__manifest__.py index ed14ca78a0c..a1908e6aaf8 100644 --- a/addons/hr_holidays/__manifest__.py +++ b/addons/hr_holidays/__manifest__.py @@ -28,6 +28,7 @@ A synchronization with an internal agenda (Meetings of the CRM module) is also p 'data': [ 'data/report_paperformat.xml', 'data/hr_holidays_data.xml', + 'data/mail_data.xml', 'security/hr_holidays_security.xml', 'security/ir.model.access.csv', diff --git a/addons/hr_holidays/data/hr_holidays_data.xml b/addons/hr_holidays/data/hr_holidays_data.xml index 7213fdd66a4..a08a0eddb3d 100644 --- a/addons/hr_holidays/data/hr_holidays_data.xml +++ b/addons/hr_holidays/data/hr_holidays_data.xml @@ -33,133 +33,5 @@ brown - - - - Confirmed - hr.leave - Request created and waiting confirmation - - - - Waiting Second Validation - hr.leave - - Request validated, waiting second validation - - - - Approved - hr.leave - Request approved - - - - Refused - hr.leave - - Request refused - - - - - Confirmed - hr.leave.allocation - Request created and waiting confirmation - - - - Waiting Second Validation - hr.leave.allocation - - Request validated, waiting second validation - - - - Approved - hr.leave.allocation - Request approved - - - - Refused - hr.leave.allocation - - Request refused - - - - - Leaves Confirmed - hr.department - - - department_id - - - - - Leaves First Approval - hr.department - - - department_id - - - - - Leaves Approved - hr.department - - - department_id - - - - - Leaves Refused - hr.department - - - department_id - - - - - Allocations Confirmed - hr.department - - - department_id - - - - - Allocations First Approval - hr.department - - - department_id - - - - - Allocation Approved - hr.department - - - department_id - - - - - Allocation Refused - hr.department - - - department_id - - - diff --git a/addons/hr_holidays/data/mail_data.xml b/addons/hr_holidays/data/mail_data.xml new file mode 100644 index 00000000000..57c92f06581 --- /dev/null +++ b/addons/hr_holidays/data/mail_data.xml @@ -0,0 +1,132 @@ + + + + + + Confirmed + hr.leave + Request created and waiting confirmation + + + + Waiting Second Validation + hr.leave + + Request validated, waiting second validation + + + + Approved + hr.leave + Request approved + + + + Refused + hr.leave + + Request refused + + + + + Confirmed + hr.leave.allocation + Request created and waiting confirmation + + + + Waiting Second Validation + hr.leave.allocation + + Request validated, waiting second validation + + + + Approved + hr.leave.allocation + Request approved + + + + Refused + hr.leave.allocation + + Request refused + + + + + Leaves Confirmed + hr.department + + + department_id + + + + + Leaves First Approval + hr.department + + + department_id + + + + + Leaves Approved + hr.department + + + department_id + + + + + Leaves Refused + hr.department + + + department_id + + + + + Allocations Confirmed + hr.department + + + department_id + + + + + Allocations First Approval + hr.department + + + department_id + + + + + Allocation Approved + hr.department + + + department_id + + + + + Allocation Refused + hr.department + + + department_id + + + + + \ No newline at end of file