diff --git a/addons/contacts/__init__.py b/addons/contacts/__init__.py index 67dee8c60db..dc5e6b693d1 100644 --- a/addons/contacts/__init__.py +++ b/addons/contacts/__init__.py @@ -1,2 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import models diff --git a/addons/contacts/__manifest__.py b/addons/contacts/__manifest__.py index 1df86af5667..5eef2f47a17 100644 --- a/addons/contacts/__manifest__.py +++ b/addons/contacts/__manifest__.py @@ -10,7 +10,7 @@ This module gives you a quick view of your contacts directory, accessible from your home page. You can track your vendors, customers and other contacts. """, - 'depends': ['base'], + 'depends': ['base', 'mail'], 'data': [ 'views/contact_views.xml', ], diff --git a/addons/contacts/models/__init__.py b/addons/contacts/models/__init__.py new file mode 100644 index 00000000000..74f3017f7e6 --- /dev/null +++ b/addons/contacts/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import res_users diff --git a/addons/contacts/models/res_users.py b/addons/contacts/models/res_users.py new file mode 100644 index 00000000000..3a42daaa007 --- /dev/null +++ b/addons/contacts/models/res_users.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import api, models, modules + + +class Users(models.Model): + _name = 'res.users' + _inherit = ['res.users'] + + @api.model + def systray_get_activities(self): + """ Update the systray icon of res.partner activities to use the + contact application one instead of base icon. """ + activities = super(Users, self).systray_get_activities() + for activity in activities: + if activity['model'] != 'res.partner': + continue + activity['icon'] = modules.module.get_module_icon('contacts') + activity['actions'] = [{ + 'icon': 'fa-clock-o', + '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 82da7aaca6b..efedaa7b393 100644 --- a/addons/contacts/views/contact_views.xml +++ b/addons/contacts/views/contact_views.xml @@ -34,6 +34,22 @@ + + 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. + + + + + + + + + + Late diff --git a/addons/note/static/src/scss/note.scss b/addons/note/static/src/scss/note.scss index a1d4227e182..e7bc23fb855 100644 --- a/addons/note/static/src/scss/note.scss +++ b/addons/note/static/src/scss/note.scss @@ -37,6 +37,7 @@ display: flex; p { flex: 1 1 auto; + margin-bottom: 0px; } } .o_note_save { @@ -60,4 +61,7 @@ } } } + .o_note_set_datetime { + color: $text-muted; + } } diff --git a/addons/note/static/src/xml/systray.xml b/addons/note/static/src/xml/systray.xml index 56693a14544..8f0e953d94f 100644 --- a/addons/note/static/src/xml/systray.xml +++ b/addons/note/static/src/xml/systray.xml @@ -14,8 +14,8 @@ Add a note - - + +
+ Create a contact in your address book +
+ Odoo helps you to easily track all activities related to a customer. +