Skip to content

Commit 3e36e19

Browse files
committed
Merge PR OCA#3233 into 18.0
Signed-off-by yvaucher
2 parents 61dc78f + 507ea7b commit 3e36e19

34 files changed

+1390
-0
lines changed
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
=========================
2+
Client side message boxes
3+
=========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:c6ab6322d92b7ec73af6324032ed00e8a974d28ad30f78d025febc67e5976bf7
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
20+
:target: https://github.com/OCA/web/tree/18.0/web_ir_actions_act_window_message
21+
:alt: OCA/web
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_ir_actions_act_window_message
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows to show a message popup on the client side as result
32+
of a button.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Usage
40+
=====
41+
42+
Depend on this module and return
43+
44+
.. code:: python
45+
46+
{
47+
'type': 'ir.actions.act_window.message',
48+
'title': _('My title'),
49+
'message': _('My message'),
50+
# optional title of the close button, if not set, will be _('Close')
51+
# if set False, no close button will be shown
52+
# you can create your own close button with an action of type
53+
# ir.actions.act_window_close
54+
'close_button_title': 'Make this window go away',
55+
# Use HTML instead of text
56+
'is_html_message': True,
57+
# this is an optional list of buttons to show
58+
'buttons': [
59+
# a button can be any action (also ir.actions.report.xml et al)
60+
{
61+
'type': 'ir.actions.act_window',
62+
'name': 'All customers',
63+
'res_model': 'res.partner',
64+
'view_mode': 'form',
65+
'views': [[False, 'list'], [False, 'form']],
66+
'domain': [('customer', '=', True)],
67+
},
68+
# or if type == method, you need to pass a model, a method name and
69+
# parameters
70+
{
71+
'type': 'method',
72+
'name': _('Yes, do it'),
73+
'model': self._name,
74+
'method': 'myfunction',
75+
# list of arguments to pass positionally
76+
'args': [self.ids],
77+
# dictionary of keyword arguments
78+
'kwargs': {'force': True},
79+
# button style
80+
'classes': 'btn-primary',
81+
}
82+
]
83+
}
84+
85+
You are responsible for translating the messages.
86+
87+
Known issues / Roadmap
88+
======================
89+
90+
- add message_type to differenciate between warnings, errors, etc.
91+
- have one message_type to show a nonmodal warning on top right
92+
93+
Bug Tracker
94+
===========
95+
96+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
97+
In case of trouble, please check there if your issue has already been reported.
98+
If you spotted it first, help us to smash it by providing a detailed and welcomed
99+
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_ir_actions_act_window_message%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
100+
101+
Do not contact contributors directly about support or help with technical issues.
102+
103+
Credits
104+
=======
105+
106+
Authors
107+
-------
108+
109+
* Therp BV
110+
* ACSONE SA/NV
111+
112+
Contributors
113+
------------
114+
115+
- Holger Brunn <[email protected]>
116+
- Zakaria Makrelouf (ACSONE SA/NV) <[email protected]>
117+
- Benjamin Willig (ACSONE SA/NV) <[email protected]>
118+
- Ioan Galan (Studio73) <[email protected]>
119+
- Abraham Anes (Studio73) <[email protected]>
120+
- Miguel Gandia (Studio73) <[email protected]>
121+
- `DynApps NV <https://www.dynapps.be>`__:
122+
123+
- Koen Loodts
124+
- Raf Ven
125+
126+
Maintainers
127+
-----------
128+
129+
This module is maintained by the OCA.
130+
131+
.. image:: https://odoo-community.org/logo.png
132+
:alt: Odoo Community Association
133+
:target: https://odoo-community.org
134+
135+
OCA, or the Odoo Community Association, is a nonprofit organization whose
136+
mission is to support the collaborative development of Odoo features and
137+
promote its widespread use.
138+
139+
This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_ir_actions_act_window_message>`_ project on GitHub.
140+
141+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2017 Therp BV, ACSONE SA/NV
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Client side message boxes",
5+
"version": "18.0.1.0.0",
6+
"author": "Therp BV, " "ACSONE SA/NV, " "Odoo Community Association (OCA)",
7+
"website": "https://github.com/OCA/web",
8+
"license": "AGPL-3",
9+
"category": "Hidden/Dependency",
10+
"summary": "Show a message box to users",
11+
"depends": ["web"],
12+
"data": [
13+
"security/ir.model.access.csv",
14+
],
15+
"assets": {
16+
"web.assets_backend": [
17+
"web_ir_actions_act_window_message/static/src/**/*",
18+
],
19+
},
20+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_ir_actions_act_window_message
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
12+
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
15+
"Language: ar\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
20+
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
21+
22+
#. module: web_ir_actions_act_window_message
23+
#. openerp-web
24+
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
25+
#, python-format
26+
msgid "Close"
27+
msgstr "إغلاق"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_ir_actions_act_window_message
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
12+
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
15+
"Language: de\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20+
21+
#. module: web_ir_actions_act_window_message
22+
#. openerp-web
23+
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
24+
#, python-format
25+
msgid "Close"
26+
msgstr "Schließen"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_ir_actions_act_window_message
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
12+
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
15+
"Language: es\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20+
21+
#. module: web_ir_actions_act_window_message
22+
#. openerp-web
23+
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
24+
#, python-format
25+
msgid "Close"
26+
msgstr "Cerrar"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_ir_actions_act_window_message
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
12+
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n"
15+
"Language: eu\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20+
21+
#. module: web_ir_actions_act_window_message
22+
#. openerp-web
23+
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
24+
#, python-format
25+
msgid "Close"
26+
msgstr "Itxi"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_ir_actions_act_window_message
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
12+
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
15+
"Language: fi\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20+
21+
#. module: web_ir_actions_act_window_message
22+
#. openerp-web
23+
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
24+
#, python-format
25+
msgid "Close"
26+
msgstr "Sulje"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_ir_actions_act_window_message
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
12+
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
15+
"Language: fr\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
20+
21+
#. module: web_ir_actions_act_window_message
22+
#. openerp-web
23+
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
24+
#, python-format
25+
msgid "Close"
26+
msgstr "Fermer"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_ir_actions_act_window_message
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
12+
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
15+
"Language: hr\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
21+
22+
#. module: web_ir_actions_act_window_message
23+
#. openerp-web
24+
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
25+
#, python-format
26+
msgid "Close"
27+
msgstr "Zatvori"

0 commit comments

Comments
 (0)