From 8e15a23ca66fbc4225f2ac5b347c5ce490a37995 Mon Sep 17 00:00:00 2001 From: Geoffroy Larue Date: Wed, 17 Oct 2018 13:02:49 +0000 Subject: [PATCH] [IMP] mail: add view icon on all app (activity systray) Before this commit, you could only access the activity view of the Contacts app via the activity icon in activity systray menu. With this commit, all apps in the activity systray menu that support the activity view now have this icon that redirects to the corresponding activity view. Also, the icon in the activity systray menu has been changed in order to match the icon of the activity view in the view switcher. Task-ID 1894900 closes odoo/odoo#28066 --- addons/contacts/models/res_users.py | 5 -- addons/contacts/views/contact_views.xml | 15 ---- addons/mail/models/res_users.py | 4 + .../src/js/systray/systray_activity_menu.js | 19 ++++- .../systray/systray_activity_menu_tests.js | 73 ++++++++++++++++++- 5 files changed, 92 insertions(+), 24 deletions(-) diff --git a/addons/contacts/models/res_users.py b/addons/contacts/models/res_users.py index 65062bcb6e7..04e16b713c6 100644 --- a/addons/contacts/models/res_users.py +++ b/addons/contacts/models/res_users.py @@ -17,9 +17,4 @@ class Users(models.Model): if activity['model'] != 'res.partner': continue activity['icon'] = modules.module.get_module_icon('contacts') - activity['actions'] = [{ - 'icon': 'fa-th', - 'name': 'Summary', - 'action_xmlid': 'contacts.action_contacts_summary' - }] return activities diff --git a/addons/contacts/views/contact_views.xml b/addons/contacts/views/contact_views.xml index efedaa7b393..077f17292f3 100644 --- a/addons/contacts/views/contact_views.xml +++ b/addons/contacts/views/contact_views.xml @@ -34,21 +34,6 @@ - - Contacts - ir.actions.act_window - res.partner - form - activity,kanban,tree,form - - -

- Create a contact in your address book -

- Odoo helps you to easily track all activities related to a customer. -

-
-