summaryrefslogtreecommitdiff
path: root/addons/hr_holidays/data/mail_data.xml
diff options
context:
space:
mode:
authorMohit Ghodasara <mgh@odoo.com>2019-01-31 10:45:06 +0000
committerThibault Delavallée <tde@odoo.com>2019-02-05 11:32:14 +0000
commitbbd64c22abc19558c1d83a892fc426bf99a094ce (patch)
tree09a9db8350395bf543980e339265ee7e33b3733d /addons/hr_holidays/data/mail_data.xml
parent0db0e66e96a8f6b393565da6fbb8dce25ec960b7 (diff)
[IMP] various: prevent unlink of automated activity types
Purpose of this merge is to update main addons and set activity types used for automated activities as master data. This means they cannot be removed. Indeed those activity types are used in business flow to generate activities and removing them may break some flows. This commit is linked to task ID 1907970 and PR #29257.
Diffstat (limited to 'addons/hr_holidays/data/mail_data.xml')
-rw-r--r--addons/hr_holidays/data/mail_data.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/hr_holidays/data/mail_data.xml b/addons/hr_holidays/data/mail_data.xml
index 253cac416fe..a57701e195c 100644
--- a/addons/hr_holidays/data/mail_data.xml
+++ b/addons/hr_holidays/data/mail_data.xml
@@ -6,11 +6,13 @@
<field name="name">Time Off Approval</field>
<field name="icon">fa-sun-o</field>
<field name="res_model_id" ref="hr_holidays.model_hr_leave"/>
+ <field name="is_master_data">True</field>
</record>
<record id="mail_act_leave_second_approval" model="mail.activity.type">
<field name="name">Time Off Second Approve</field>
<field name="icon">fa-sun-o</field>
<field name="res_model_id" ref="hr_holidays.model_hr_leave"/>
+ <field name="is_master_data">True</field>
</record>
<!-- Leave specific activities -->
@@ -18,11 +20,13 @@
<field name="name">Allocation Approval</field>
<field name="icon">fa-sun-o</field>
<field name="res_model_id" ref="hr_holidays.model_hr_leave_allocation"/>
+ <field name="is_master_data">True</field>
</record>
<record id="mail_act_leave_allocation_second_approval" model="mail.activity.type">
<field name="name">Allocation Second Approve</field>
<field name="icon">fa-sun-o</field>
<field name="res_model_id" ref="hr_holidays.model_hr_leave_allocation"/>
+ <field name="is_master_data">True</field>
</record>
<!-- Holidays-related subtypes for messaging / Chatter -->