Browse Source

base_phone_popup: use named arguments

Move README from manifest to dedicated dir
pull/171/head
Alexis de Lattre 6 years ago
parent
commit
4ba55b0494
  1. 8
      base_phone_popup/__manifest__.py
  2. 3
      base_phone_popup/models/phone_common.py
  3. 1
      base_phone_popup/readme/CONTRIBUTORS.rst
  4. 3
      base_phone_popup/readme/DESCRIPTION.rst
  5. 1
      base_phone_popup/readme/USAGE.rst

8
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'],

3
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))

1
base_phone_popup/readme/CONTRIBUTORS.rst

@ -0,0 +1 @@
* Alexis de Lattre <alexis.delattre@akretion.com>

3
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.

1
base_phone_popup/readme/USAGE.rst

@ -0,0 +1 @@
To deploy this feature with an Asterisk-based IPBX, please read this `document <https://akretion.com/en/open-source-contributions/odoo-asterisk-voip-connector>`_.
Loading…
Cancel
Save