You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.0 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ==========
  5. Web Notify
  6. ==========
  7. Send instant notification messages to the user in live.
  8. This technical module allows you to send instant notification messages from the server to the user in live.
  9. Two kinds of notification are supported.
  10. * Warning: Displayed in a red flying popup div
  11. * Information: Displayed in a light yellow flying popup div
  12. To send a notification to the user you just need to call one of the new methods defined on res.users:
  13. .. code-block:: python
  14. self.env.user.notify_info('My information message')
  15. or
  16. .. code-block:: python
  17. self.env.user.notify_warning('My marning message')
  18. Installation
  19. ============
  20. This module is based on the Instant Messaging Bus. To work properly, the server must be launched in gevent mode.
  21. Usage
  22. =====
  23. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  24. :alt: Try me on Runbot
  25. :target: https://runbot.odoo-community.org/runbot/162/9.0
  26. Bug Tracker
  27. ===========
  28. Bugs are tracked on `GitHub Issues
  29. <https://github.com/OCA/web/issues>`_. In case of trouble, please
  30. check there if your issue has already been reported. If you spotted it first,
  31. help us smashing it by providing a detailed and welcomed feedback.
  32. Credits
  33. =======
  34. Images
  35. ------
  36. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
  37. Contributors
  38. ------------
  39. * Laurent Mignon <laurent.mignon@acsone.eu>
  40. Maintainer
  41. ----------
  42. .. image:: https://odoo-community.org/logo.png
  43. :alt: Odoo Community Association
  44. :target: https://odoo-community.org
  45. This module is maintained by the OCA.
  46. OCA, or the Odoo Community Association, is a nonprofit organization whose
  47. mission is to support the collaborative development of Odoo features and
  48. promote its widespread use.
  49. To contribute to this module, please visit https://odoo-community.org.