From df29f88c98d4bdbf4a097aa85deee92540a1acaa Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Mon, 1 Apr 2024 06:36:48 +0000
Subject: [PATCH] [BOT] post-merge updates
---
web_notify/README.rst | 11 ++++++++---
web_notify/__manifest__.py | 2 +-
web_notify/static/description/index.html | 18 ++++++++++++++++--
3 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/web_notify/README.rst b/web_notify/README.rst
index 660229455..27995bd1c 100644
--- a/web_notify/README.rst
+++ b/web_notify/README.rst
@@ -7,7 +7,7 @@ Web Notify
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:4517d4a854a8c5b84197dc9510ae75ac0fa82ce2a37a3a0d4078ea51a65c073f
+ !! source digest: sha256:0f62f42226ca419e7db3fb3ee2a5be600f06184db73c61097ddc2fadbcf09025
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -73,6 +73,12 @@ or
or
+.. code-block:: python
+
+ self.env.user.notify_info(message='My information message')
+
+or
+
.. code-block:: python
self.env.user.notify_default(message='My default message')
@@ -90,7 +96,7 @@ The action can be used using the ``action`` keyword:
.. code-block:: python
- action = self.env.ref('sale.action_orders').read()[0]
+ action = self.env["ir.actions.act_window"]._for_xml_id('sale.action_orders')
action.update({
'res_id': self.id,
'views': [(False, 'form')],
@@ -136,7 +142,6 @@ Contributors
* Aitor Bouzas
* Shepilov Vladislav
* Kevin Khao
-* Guewen Baconnier
* `Tecnativa `_:
* David Vidal
diff --git a/web_notify/__manifest__.py b/web_notify/__manifest__.py
index 69b35556c..ae2df076c 100644
--- a/web_notify/__manifest__.py
+++ b/web_notify/__manifest__.py
@@ -6,7 +6,7 @@
"name": "Web Notify",
"summary": """
Send notification messages to user""",
- "version": "16.0.1.0.1",
+ "version": "16.0.2.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV," "AdaptiveCity," "Odoo Community Association (OCA)",
"development_status": "Production/Stable",
diff --git a/web_notify/static/description/index.html b/web_notify/static/description/index.html
index d7700112d..6476ccf3f 100644
--- a/web_notify/static/description/index.html
+++ b/web_notify/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -367,7 +366,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:4517d4a854a8c5b84197dc9510ae75ac0fa82ce2a37a3a0d4078ea51a65c073f
+!! source digest: sha256:0f62f42226ca419e7db3fb3ee2a5be600f06184db73c61097ddc2fadbcf09025
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Send instant notification messages to the user in live.
@@ -420,6 +419,21 @@ Two kinds of notification are supported.
self.env.user.notify_default(message='My default message')
+The notifications can bring interactivity with some buttons.
+
+- One allowing to refresh the active view
+- Another allowing to send a window / client action
+
+The reload button is activated when sending the notification with:
+The action can be used using the action keyword:
+
+ action = self.env["ir.actions.act_window"]._for_xml_id('sale.action_orders')
+ action.update({
+ 'res_id': self.id,
+ 'views': [(False, 'form')],
+ })
+self.env.user.notify_info('My information message', action=action)
+