mirror of https://github.com/OCA/web.git
[BOT] post-merge updates
parent
90009c06b3
commit
871df13026
|
@ -44,7 +44,7 @@ addon | version | maintainers | summary
|
|||
[web_listview_range_select](web_listview_range_select/) | 16.0.1.0.0 | | Enables selecting a range of records using the shift key
|
||||
[web_m2x_options](web_m2x_options/) | 16.0.1.1.2 | | web_m2x_options
|
||||
[web_no_bubble](web_no_bubble/) | 16.0.1.0.0 | | Remove the bubbles from the web interface
|
||||
[web_notify](web_notify/) | 16.0.1.0.1 | | Send notification messages to user
|
||||
[web_notify](web_notify/) | 16.0.2.0.0 | | Send notification messages to user
|
||||
[web_notify_channel_message](web_notify_channel_message/) | 16.0.1.0.0 | | Send an instant notification to channel users when a new message is posted
|
||||
[web_pivot_computed_measure](web_pivot_computed_measure/) | 16.0.1.0.0 | [](https://github.com/CarlosRoca13) | Web Pivot Computed Measure
|
||||
[web_pwa_oca](web_pwa_oca/) | 16.0.1.0.0 | [](https://github.com/eLBati) | Make Odoo a PWA
|
||||
|
|
|
@ -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 <aitor.bouzas@adaptivecity.com>
|
||||
* Shepilov Vladislav <shepilov.v@protonmail.com>
|
||||
* Kevin Khao <kevin.khao@akretion.com>
|
||||
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
* `Tecnativa <https://www.tecnativa.com>`_:
|
||||
|
||||
* David Vidal
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
|
@ -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
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/16.0/web_notify"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>Send instant notification messages to the user in live.</p>
|
||||
|
@ -420,6 +419,21 @@ Two kinds of notification are supported.</p>
|
|||
<pre class="code python literal-block">
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">env</span><span class="o">.</span><span class="n">user</span><span class="o">.</span><span class="n">notify_default</span><span class="p">(</span><span class="n">message</span><span class="o">=</span><span class="s1">'My default message'</span><span class="p">)</span>
|
||||
</pre>
|
||||
<p>The notifications can bring interactivity with some buttons.</p>
|
||||
<ul class="simple">
|
||||
<li>One allowing to refresh the active view</li>
|
||||
<li>Another allowing to send a window / client action</li>
|
||||
</ul>
|
||||
<p>The reload button is activated when sending the notification with:</p>
|
||||
<p>The action can be used using the <tt class="docutils literal">action</tt> keyword:</p>
|
||||
<pre class="code python literal-block">
|
||||
<span class="n">action</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">env</span><span class="p">[</span><span class="s2">"ir.actions.act_window"</span><span class="p">]</span><span class="o">.</span><span class="n">_for_xml_id</span><span class="p">(</span><span class="s1">'sale.action_orders'</span><span class="p">)</span><span class="w">
|
||||
</span> <span class="n">action</span><span class="o">.</span><span class="n">update</span><span class="p">({</span><span class="w">
|
||||
</span> <span class="s1">'res_id'</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">id</span><span class="p">,</span><span class="w">
|
||||
</span> <span class="s1">'views'</span><span class="p">:</span> <span class="p">[(</span><span class="kc">False</span><span class="p">,</span> <span class="s1">'form'</span><span class="p">)],</span><span class="w">
|
||||
</span> <span class="p">})</span><span class="w">
|
||||
</span><span class="bp">self</span><span class="o">.</span><span class="n">env</span><span class="o">.</span><span class="n">user</span><span class="o">.</span><span class="n">notify_info</span><span class="p">(</span><span class="s1">'My information message'</span><span class="p">,</span> <span class="n">action</span><span class="o">=</span><span class="n">action</span><span class="p">)</span>
|
||||
</pre>
|
||||
<div class="figure">
|
||||
<img alt="Sample notifications" src="https://raw.githubusercontent.com/OCA/web/16.0/web_notify/static/description/notifications_screenshot.gif" />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue