From 6987c5adf0a5e5ce68be6f67af72f7dde90d2f6b Mon Sep 17 00:00:00 2001 From: Mahendra barad Date: Thu, 16 Mar 2017 19:12:43 +0530 Subject: [PATCH 1/4] [IMP] mail: set model field of activity types in technical features Using activity types cross applications and having some specific to a given app is considered as an advanced way of defining them. --- addons/mail/views/mail_activity_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/views/mail_activity_views.xml b/addons/mail/views/mail_activity_views.xml index 388f64e1b16..74e9185a534 100644 --- a/addons/mail/views/mail_activity_views.xml +++ b/addons/mail/views/mail_activity_views.xml @@ -12,7 +12,7 @@ - + From 78e0c08b0315f6726a7c765fa557445a716282de Mon Sep 17 00:00:00 2001 From: Mahendra barad Date: Wed, 15 Mar 2017 10:33:12 +0530 Subject: [PATCH 2/4] [IMP] mail: add activity types configuration that is missing to use activities efficiently Currently tweaking or defining new activity types is difficult to achieve as menu is hidden under technical settings. This commit eases the activity types configuration by adding a menu allowing to customize them directly under Emails section of General Settings. By the way it is renamed to Discuss to better reflect its purpose. This is an improvement but considered as an usability fix, therefore targeting a stable version. --- addons/mail/views/res_config_views.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/addons/mail/views/res_config_views.xml b/addons/mail/views/res_config_views.xml index ea8ebacf725..732b7df0497 100644 --- a/addons/mail/views/res_config_views.xml +++ b/addons/mail/views/res_config_views.xml @@ -7,8 +7,22 @@
-

Emails

+

Discuss

+
+
+
+
+
From 0f17d3a348b602f62409e49fdbf925cc799f44d1 Mon Sep 17 00:00:00 2001 From: Mahendra Barad Date: Thu, 23 Mar 2017 10:32:56 +0100 Subject: [PATCH 3/4] [IMP] project: add menu to configure project-related activity types Activity types are currently hard to find and define. In this commit we add a menu under project configuration to access generic or project related activity types (task, issue). This commit is an improvement considered as an usability fix, therefore targeting stable version. --- addons/project/views/project_views.xml | 12 ++++++++++++ addons/project_issue/views/project_issue_views.xml | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 08f3b80c8c7..eeba7d224cc 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -631,6 +631,18 @@ action = model.activate_sample_project() action="project_task_action_activity" sequence="25"/> + + + Activity Types + mail.activity.type + form + tree,form + ['|', ('res_model_id', '=', False), ('res_model_id.model', '=', 'project.task')] + + + Overpassed Tasks project.task diff --git a/addons/project_issue/views/project_issue_views.xml b/addons/project_issue/views/project_issue_views.xml index 5eb5e5b7170..78e04595e22 100644 --- a/addons/project_issue/views/project_issue_views.xml +++ b/addons/project_issue/views/project_issue_views.xml @@ -372,4 +372,8 @@ parent="project.menu_project_management" action="project_issue_action_activity" sequence="25"/> + + + ['|', ('res_model_id', '=', False), ('res_model_id.model', 'in', ['project.task', 'project.issue'])] + From 83e8ae43b09256609567a00677fe0de8422417cc Mon Sep 17 00:00:00 2001 From: Mahendra Barad Date: Thu, 23 Mar 2017 10:38:05 +0100 Subject: [PATCH 4/4] [IMP] sales_*: add menu to configure sales-related activity types Activity types are currently hard to find and define. In this commit we add a menu under sales configuration to access generic or sales related activity types (contact, lead, product, sale order). This commit is an improvement considered as an usability fix, therefore targeting stable version. --- addons/crm/views/crm_team_views.xml | 4 ++++ addons/sale/views/sales_team_views.xml | 4 ++++ addons/sale_crm/views/crm_lead_views.xml | 4 ++++ addons/sales_team/views/crm_team_views.xml | 13 +++++++++++++ 4 files changed, 25 insertions(+) diff --git a/addons/crm/views/crm_team_views.xml b/addons/crm/views/crm_team_views.xml index 7b007b8a531..23698ecc36c 100644 --- a/addons/crm/views/crm_team_views.xml +++ b/addons/crm/views/crm_team_views.xml @@ -242,4 +242,8 @@ + + ['|', ('res_model_id', '=', False), ('res_model_id.model', 'in', ['crm.lead', 'res.partner'])] + + diff --git a/addons/sale/views/sales_team_views.xml b/addons/sale/views/sales_team_views.xml index b10d6b55764..c1fec1d76d4 100644 --- a/addons/sale/views/sales_team_views.xml +++ b/addons/sale/views/sales_team_views.xml @@ -137,4 +137,8 @@ + + ['|', ('res_model_id', '=', False), ('res_model_id.model', 'in', ['sale.order', 'res.partner', 'product.template', 'product.product'])] + + diff --git a/addons/sale_crm/views/crm_lead_views.xml b/addons/sale_crm/views/crm_lead_views.xml index a85f89b796a..2f3f7883fe7 100644 --- a/addons/sale_crm/views/crm_lead_views.xml +++ b/addons/sale_crm/views/crm_lead_views.xml @@ -45,4 +45,8 @@ {'default_type': 'opportunity', 'default_user_id': uid, 'needaction_menu_ref': 'sale.menu_sale_quotations'} + + ['|', ('res_model_id', '=', False), ('res_model_id.model', 'in', ['crm.lead', 'sale.order', 'res.partner', 'product.template', 'product.product'])] + + diff --git a/addons/sales_team/views/crm_team_views.xml b/addons/sales_team/views/crm_team_views.xml index a6deb5ac49d..cab20d5b5fc 100644 --- a/addons/sales_team/views/crm_team_views.xml +++ b/addons/sales_team/views/crm_team_views.xml @@ -196,5 +196,18 @@ parent="sales_team.menu_sale_config" action="sales_team_config_action"/> + + Activity Types + mail.activity.type + form + tree,form + ['|', ('res_model_id', '=', False), ('res_model_id.model', '=', 'res.partner')] + + +