diff --git a/web_notify/README.rst b/web_notify/README.rst index 37dcbc7ab7b1..11797a4d1988 100644 --- a/web_notify/README.rst +++ b/web_notify/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ========== Web Notify ========== @@ -17,7 +13,7 @@ Web Notify .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png :target: https://odoo-community.org/page/development-status :alt: Production/Stable -.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github @@ -124,6 +120,12 @@ you'll find two buttons that'll allow you test the module. .. |image1| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_notify/static/img/notifications_screenshot.gif .. |image2| image:: https://raw.githubusercontent.com/OCA/web/18.0/web_notify/static/img/test_notifications_demo.png +Known issues / Roadmap +====================== + +The html parameter is not used. message is always rendered as HTML. The +html parameter should probaly be dropped in future versions. + Bug Tracker =========== diff --git a/web_notify/models/res_users.py b/web_notify/models/res_users.py index 2b82fd21d62b..3fbd804b62a0 100644 --- a/web_notify/models/res_users.py +++ b/web_notify/models/res_users.py @@ -150,3 +150,8 @@ def _notify_channel( "web_notify", bus_message, ) + + def action_test_html_notify(self): + self.notify_info( + message="Bold text
New line", html=False, sticky=True + ) diff --git a/web_notify/readme/ROADMAP.md b/web_notify/readme/ROADMAP.md new file mode 100644 index 000000000000..19638f8ea14e --- /dev/null +++ b/web_notify/readme/ROADMAP.md @@ -0,0 +1 @@ +The html parameter is not used. message is always rendered as HTML. The html parameter should probaly be dropped in future versions. diff --git a/web_notify/static/description/index.html b/web_notify/static/description/index.html index 37071c707945..b080f7fbe988 100644 --- a/web_notify/static/description/index.html +++ b/web_notify/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Web Notify -
+
+

Web Notify

- - -Odoo Community Association - -
-

Web Notify

-

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

Send instant notification messages to the user in live.

This technical module allows you to send instant notification messages from the server to the user in live. Two kinds of notification are @@ -391,23 +386,24 @@

Web Notify

-

Installation

+

Installation

This module is based on the Instant Messaging Bus. To work properly, the server must be launched in gevent mode.

-

Usage

+

Usage

To send a notification to the user you just need to call one of the new methods defined on res.users:

@@ -456,8 +452,13 @@ 

Usage

you’ll find two buttons that’ll allow you test the module.

image2

+
+

Known issues / Roadmap

+

The html parameter is not used. message is always rendered as HTML. The +html parameter should probaly be dropped in future versions.

+
-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -465,16 +466,16 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • ACSONE SA/NV
  • AdaptiveCity
-

Contributors

+

Contributors

-

Other credits

+

Other credits

The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -508,6 +509,5 @@

Maintainers

-
diff --git a/web_notify/static/src/js/services/notification_services.esm.js b/web_notify/static/src/js/services/notification_services.esm.js index 4daabd3844e9..1ac2f71d69c1 100644 --- a/web_notify/static/src/js/services/notification_services.esm.js +++ b/web_notify/static/src/js/services/notification_services.esm.js @@ -29,7 +29,6 @@ export const webNotificationService = { type: notification.type, sticky: notification.sticky, className: notification.className, - messageIsHtml: notification.html, buttons: buttons.map((button) => { const onClick = button.onClick; button.onClick = async () => { diff --git a/web_notify/views/res_users_demo.xml b/web_notify/views/res_users_demo.xml index 2aa5062d1581..a227f193732e 100644 --- a/web_notify/views/res_users_demo.xml +++ b/web_notify/views/res_users_demo.xml @@ -55,6 +55,16 @@ /> + + +