diff --git a/base_phone_popup/__manifest__.py b/base_phone_popup/__manifest__.py index 4537f1d..2775338 100644 --- a/base_phone_popup/__manifest__.py +++ b/base_phone_popup/__manifest__.py @@ -10,14 +10,6 @@ 'category': 'Phone', 'license': 'AGPL-3', 'summary': 'Show a pop-up on incoming calls', - 'description': """ -Base Phone Pop-up -================= - -When the user receives a phone call, Odoo will display a notification -at the top-right of the screen that contains a link to the corresponding -partner/lead/employee/... and a link to the *Number not found* wizard. -""", 'author': "Akretion,Odoo Community Association (OCA)", 'website': 'http://www.akretion.com/', 'depends': ['base_phone', 'web_notify'], diff --git a/base_phone_popup/models/phone_common.py b/base_phone_popup/models/phone_common.py index 17a365b..c92e2dd 100644 --- a/base_phone_popup/models/phone_common.py +++ b/base_phone_popup/models/phone_common.py @@ -52,7 +52,8 @@ class PhoneCommon(models.AbstractModel): message = _('Call from %s') % number action_link_name = res and res[2] or action['name'] users.notify_info( - message, title, True, False, action, action_link_name) + message, title=title, sticky=True, action=action, + action_link_name=action_link_name) logger.debug( 'This action has been sent to users IDs %s: %s' % (users.ids, action)) diff --git a/base_phone_popup/readme/CONTRIBUTORS.rst b/base_phone_popup/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..ff65d68 --- /dev/null +++ b/base_phone_popup/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alexis de Lattre diff --git a/base_phone_popup/readme/DESCRIPTION.rst b/base_phone_popup/readme/DESCRIPTION.rst new file mode 100644 index 0000000..b2c7dfa --- /dev/null +++ b/base_phone_popup/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +When the user receives a phone call, Odoo will display a notification +at the top-right of the screen that contains a link to the corresponding +partner/lead/employee/... or a link to the *Number not found* wizard. diff --git a/base_phone_popup/readme/USAGE.rst b/base_phone_popup/readme/USAGE.rst new file mode 100644 index 0000000..46522e6 --- /dev/null +++ b/base_phone_popup/readme/USAGE.rst @@ -0,0 +1 @@ +To deploy this feature with an Asterisk-based IPBX, please read this `document `_.