From ec2b6d5b631f65f9afe9aaee7b1c30420d91686d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 18 Jul 2018 13:59:11 +0200 Subject: [PATCH] [IMP] crm, hr_recruitment: add default model when creating activity types Purpose is to help managers in their daily use of activities. When creating a new activity type through an app-dedicated menu we should pre-fill the model with the main app model. This is already done in several applications. This commit fixes some applications where it was not done. This commit is linked to task ID 1844644 and PR #25843. --- addons/crm/views/crm_team_views.xml | 1 + addons/hr_recruitment/views/mail_activity_views.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/addons/crm/views/crm_team_views.xml b/addons/crm/views/crm_team_views.xml index 6f2c0240484..63dd5506084 100644 --- a/addons/crm/views/crm_team_views.xml +++ b/addons/crm/views/crm_team_views.xml @@ -258,6 +258,7 @@ ['|', ('res_model_id', '=', False), ('res_model_id.model', 'in', ['crm.lead', 'res.partner'])] + {'default_res_model': 'crm.lead'} diff --git a/addons/hr_recruitment/views/mail_activity_views.xml b/addons/hr_recruitment/views/mail_activity_views.xml index 2d4f0139fa2..139372c6f8e 100644 --- a/addons/hr_recruitment/views/mail_activity_views.xml +++ b/addons/hr_recruitment/views/mail_activity_views.xml @@ -7,6 +7,7 @@ form tree,form ['|', ('res_model_id', '=', False), ('res_model_id.model', '=', 'hr.applicant')] + {'default_res_model': 'hr.applicant'}