Skip to content

[18.0][MIG] web_ir_actions_act_window_message: Migration to 18.0 #3113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
36cda47
[ADD] web_ir_actions_act_window_message
hbrunn Mar 17, 2015
9c5324a
[IMP] better readme, manifest
hbrunn Mar 18, 2015
64e25b5
Add bug tracker link on README.rst
yvaucher May 22, 2015
1c2ab8e
add OCA to author
Jun 4, 2015
8eb3ac7
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
88c5c1e
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
dea6d3e
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
20fa3bd
allow to pass a list of buttons
hbrunn Mar 3, 2016
4890d71
implement close_button_title
hbrunn Mar 3, 2016
9079c8a
OCA Transbot updated translations from Transifex
oca-transbot Nov 24, 2015
945f75e
web_ir_actions_act_window_message: Migration to V9
zakmak88 Apr 25, 2017
3400428
web_ir_actions_act_window_message: always refresh view after action
zakmak88 May 7, 2017
8a9dbfe
Reformat the code to have coherent coding style
zakmak88 May 16, 2017
77c50fc
s/oe_link_class/classes s/oe_highlight/btn-default and add it to read…
zakmak88 May 16, 2017
c040ad3
wrap line breaks of the action message
zakmak88 May 16, 2017
5ba7551
[MIG] web_ir_actions_act_window_message: Migration to 10. Also added …
benwillig May 23, 2017
c47fd96
OCA Transbot updated translations from Transifex
oca-transbot Jun 3, 2017
642f34f
[UPD] Update web_ir_actions_act_window_message.pot
oca-travis Jun 24, 2018
240d1a7
[12.0][MIG] web_ir_actions_act_window_message: Migration to 12.0
Nov 21, 2019
5d3301d
[UPD] Update web_ir_actions_act_window_message.pot
oca-travis Nov 26, 2019
306087b
[UPD] README.rst
OCA-git-bot Nov 26, 2019
36a5370
Update translation files
oca-transbot Nov 26, 2019
5978590
Update translation files
oca-transbot Dec 4, 2019
797d9b6
[UPD] README.rst
OCA-git-bot Mar 29, 2020
7045fd9
[IMP] web_ir_actions_act_window_message: Remove utf-8 comment
pedrobaeza Apr 23, 2020
4b900b5
[FIX] web_ir_actions_act_window_message: Proper trailing line in XML
pedrobaeza Apr 23, 2020
e3e7c83
[MIG] web_ir_actions_act_window_message
ThomasBinsfeld Jun 15, 2020
8bd5567
[UPD] Update web_ir_actions_act_window_message.pot
oca-travis Jun 29, 2020
6a81cdb
[UPD] README.rst
OCA-git-bot Jun 29, 2020
e1d1b12
[UPD] README.rst
OCA-git-bot Jul 13, 2020
1dbcddb
[UPD] README.rst
OCA-git-bot Jul 13, 2020
fb6ff22
Update translation files
oca-transbot Jul 13, 2020
68f7720
[MIG] web_ir_actions_act_window_message: Migration to 14.0
koenloodts Dec 7, 2020
666b7ec
[UPD] Update web_ir_actions_act_window_message.pot
oca-travis Dec 6, 2021
e3a101f
[UPD] README.rst
OCA-git-bot Dec 6, 2021
1f42279
[MIG] web_ir_actions_act_window_message: Migration to 15.0
JasminSForgeFlow Jul 22, 2022
935244e
[UPD] Update web_ir_actions_act_window_message.pot
Aug 26, 2022
bd30a13
[UPD] README.rst
OCA-git-bot Aug 26, 2022
46ba7f3
[MIG] web_ir_actions_act_window_message: Migration to 16.0
miguel-S73 Jan 16, 2023
d730273
[UPD] Update web_ir_actions_act_window_message.pot
Jan 19, 2024
9f1bd88
[BOT] post-merge updates
OCA-git-bot Jan 19, 2024
c0f6b91
[IMP] web_ir_actions_act_window_message: pre-commit auto fixes
eugenios73 Mar 5, 2025
26ca8df
[MIG] web_ir_actions_act_window_message: Migration to 18.0
eugenios73 Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 141 additions & 0 deletions web_ir_actions_act_window_message/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
=========================
Client side message boxes
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c6ab6322d92b7ec73af6324032ed00e8a974d28ad30f78d025febc67e5976bf7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/18.0/web_ir_actions_act_window_message
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_ir_actions_act_window_message
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to show a message popup on the client side as result
of a button.

**Table of contents**

.. contents::
:local:

Usage
=====

Depend on this module and return

.. code:: python

{
'type': 'ir.actions.act_window.message',
'title': _('My title'),
'message': _('My message'),
# optional title of the close button, if not set, will be _('Close')
# if set False, no close button will be shown
# you can create your own close button with an action of type
# ir.actions.act_window_close
'close_button_title': 'Make this window go away',
# Use HTML instead of text
'is_html_message': True,
# this is an optional list of buttons to show
'buttons': [
# a button can be any action (also ir.actions.report.xml et al)
{
'type': 'ir.actions.act_window',
'name': 'All customers',
'res_model': 'res.partner',
'view_mode': 'form',
'views': [[False, 'list'], [False, 'form']],
'domain': [('customer', '=', True)],
},
# or if type == method, you need to pass a model, a method name and
# parameters
{
'type': 'method',
'name': _('Yes, do it'),
'model': self._name,
'method': 'myfunction',
# list of arguments to pass positionally
'args': [self.ids],
# dictionary of keyword arguments
'kwargs': {'force': True},
# button style
'classes': 'btn-primary',
}
]
}

You are responsible for translating the messages.

Known issues / Roadmap
======================

- add message_type to differenciate between warnings, errors, etc.
- have one message_type to show a nonmodal warning on top right

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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
`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**>`_.

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

Credits
=======

Authors
-------

* Therp BV
* ACSONE SA/NV

Contributors
------------

- Holger Brunn <[email protected]>
- Zakaria Makrelouf (ACSONE SA/NV) <[email protected]>
- Benjamin Willig (ACSONE SA/NV) <[email protected]>
- Ioan Galan (Studio73) <[email protected]>
- Abraham Anes (Studio73) <[email protected]>
- Miguel Gandia (Studio73) <[email protected]>
- `DynApps NV <https://www.dynapps.be>`__:

- Koen Loodts
- Raf Ven

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

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.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_ir_actions_act_window_message/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions web_ir_actions_act_window_message/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2017 Therp BV, ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Client side message boxes",
"version": "18.0.1.0.0",
"author": "Therp BV, " "ACSONE SA/NV, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"license": "AGPL-3",
"category": "Hidden/Dependency",
"summary": "Show a message box to users",
"depends": ["web"],
"data": ["security/ir.model.access.csv"],
"assets": {
"web.assets_backend": [
"web_ir_actions_act_window_message/static/src/**/*",
],
},
}
27 changes: 27 additions & 0 deletions web_ir_actions_act_window_message/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "إغلاق"
26 changes: 26 additions & 0 deletions web_ir_actions_act_window_message/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "Schließen"
26 changes: 26 additions & 0 deletions web_ir_actions_act_window_message/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "Cerrar"
26 changes: 26 additions & 0 deletions web_ir_actions_act_window_message/i18n/eu.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n"
"Language: eu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "Itxi"
26 changes: 26 additions & 0 deletions web_ir_actions_act_window_message/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "Sulje"
26 changes: 26 additions & 0 deletions web_ir_actions_act_window_message/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "Fermer"
27 changes: 27 additions & 0 deletions web_ir_actions_act_window_message/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "Zatvori"
26 changes: 26 additions & 0 deletions web_ir_actions_act_window_message/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_ir_actions_act_window_message
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 09:52+0000\n"
"PO-Revision-Date: 2017-06-02 09:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: web_ir_actions_act_window_message
#. openerp-web
#: code:addons/web_ir_actions_act_window_message/static/src/js/web_ir_actions_act_window_message.js:0
#, python-format
msgid "Close"
msgstr "Chiudi"
Loading