diff --git a/web_ir_actions_act_window_message/README.rst b/web_ir_actions_act_window_message/README.rst index 4070b78b9..5e73e9ccb 100644 --- a/web_ir_actions_act_window_message/README.rst +++ b/web_ir_actions_act_window_message/README.rst @@ -17,18 +17,19 @@ Client side message boxes :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/16.0/web_ir_actions_act_window_message + :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-16-0/web-16-0-web_ir_actions_act_window_message + :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=16.0 + :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. +This module allows to show a message popup on the client side as result +of a button. **Table of contents** @@ -42,52 +43,52 @@ 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', - } - ] - } + { + '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 +- add message_type to differenciate between warnings, errors, etc. +- have one message_type to show a nonmodal warning on top right Bug Tracker =========== @@ -95,7 +96,7 @@ 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 -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -103,27 +104,27 @@ Credits ======= Authors -~~~~~~~ +------- * Therp BV * ACSONE SA/NV Contributors -~~~~~~~~~~~~ +------------ -* Holger Brunn -* Zakaria Makrelouf (ACSONE SA/NV) -* Benjamin Willig (ACSONE SA/NV) -* Ioan Galan (Studio73) -* Abraham Anes (Studio73) -* Miguel Gandia (Studio73) -* `DynApps NV `_: +- Holger Brunn +- Zakaria Makrelouf (ACSONE SA/NV) +- Benjamin Willig (ACSONE SA/NV) +- Ioan Galan (Studio73) +- Abraham Anes (Studio73) +- Miguel Gandia (Studio73) +- `DynApps NV `__: - * Koen Loodts - * Raf Ven + - Koen Loodts + - Raf Ven Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -135,6 +136,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_ir_actions_act_window_message/pyproject.toml b/web_ir_actions_act_window_message/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_ir_actions_act_window_message/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_ir_actions_act_window_message/readme/CONTRIBUTORS.md b/web_ir_actions_act_window_message/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..ef72ec137 --- /dev/null +++ b/web_ir_actions_act_window_message/readme/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +- Holger Brunn \<\> +- Zakaria Makrelouf (ACSONE SA/NV) \<\> +- Benjamin Willig (ACSONE SA/NV) \<\> +- Ioan Galan (Studio73) \<\> +- Abraham Anes (Studio73) \<\> +- Miguel Gandia (Studio73) \<\> +- [DynApps NV](https://www.dynapps.be): + - Koen Loodts + - Raf Ven diff --git a/web_ir_actions_act_window_message/readme/CONTRIBUTORS.rst b/web_ir_actions_act_window_message/readme/CONTRIBUTORS.rst deleted file mode 100644 index b04bff5b4..000000000 --- a/web_ir_actions_act_window_message/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,10 +0,0 @@ -* Holger Brunn -* Zakaria Makrelouf (ACSONE SA/NV) -* Benjamin Willig (ACSONE SA/NV) -* Ioan Galan (Studio73) -* Abraham Anes (Studio73) -* Miguel Gandia (Studio73) -* `DynApps NV `_: - - * Koen Loodts - * Raf Ven diff --git a/web_ir_actions_act_window_message/readme/DESCRIPTION.rst b/web_ir_actions_act_window_message/readme/DESCRIPTION.md similarity index 75% rename from web_ir_actions_act_window_message/readme/DESCRIPTION.rst rename to web_ir_actions_act_window_message/readme/DESCRIPTION.md index 1223482e3..5c8556eda 100644 --- a/web_ir_actions_act_window_message/readme/DESCRIPTION.rst +++ b/web_ir_actions_act_window_message/readme/DESCRIPTION.md @@ -1 +1,2 @@ -This module allows to show a message popup on the client side as result of a button. +This module allows to show a message popup on the client side as result +of a button. diff --git a/web_ir_actions_act_window_message/readme/ROADMAP.md b/web_ir_actions_act_window_message/readme/ROADMAP.md new file mode 100644 index 000000000..fdc126a7b --- /dev/null +++ b/web_ir_actions_act_window_message/readme/ROADMAP.md @@ -0,0 +1,2 @@ +- add message_type to differenciate between warnings, errors, etc. +- have one message_type to show a nonmodal warning on top right diff --git a/web_ir_actions_act_window_message/readme/ROADMAP.rst b/web_ir_actions_act_window_message/readme/ROADMAP.rst deleted file mode 100644 index 1a49589d6..000000000 --- a/web_ir_actions_act_window_message/readme/ROADMAP.rst +++ /dev/null @@ -1,2 +0,0 @@ -* add `message_type` to differenciate between warnings, errors, etc. -* have one `message_type` to show a nonmodal warning on top right diff --git a/web_ir_actions_act_window_message/readme/USAGE.md b/web_ir_actions_act_window_message/readme/USAGE.md new file mode 100644 index 000000000..845656ae9 --- /dev/null +++ b/web_ir_actions_act_window_message/readme/USAGE.md @@ -0,0 +1,44 @@ +Depend on this module and return + +``` 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. diff --git a/web_ir_actions_act_window_message/readme/USAGE.rst b/web_ir_actions_act_window_message/readme/USAGE.rst deleted file mode 100644 index 3f34ff7ce..000000000 --- a/web_ir_actions_act_window_message/readme/USAGE.rst +++ /dev/null @@ -1,44 +0,0 @@ -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. diff --git a/web_ir_actions_act_window_message/static/description/index.html b/web_ir_actions_act_window_message/static/description/index.html index 98b83ae9c..bdb8b686e 100644 --- a/web_ir_actions_act_window_message/static/description/index.html +++ b/web_ir_actions_act_window_message/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,8 +369,9 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:c6ab6322d92b7ec73af6324032ed00e8a974d28ad30f78d025febc67e5976bf7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

-

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

+

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

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

Table of contents

    @@ -432,8 +434,8 @@ ul.auto-toc {

    Known issues / Roadmap

      -
    • add message_type to differenciate between warnings, errors, etc.
    • -
    • have one message_type to show a nonmodal warning on top right
    • +
    • add message_type to differenciate between warnings, errors, etc.
    • +
    • have one message_type to show a nonmodal warning on top right
    @@ -441,7 +443,7 @@ ul.auto-toc {

    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 -feedback.

    +feedback.

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

    @@ -472,11 +474,13 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

    Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    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 project on GitHub.

    +

    This module is part of the OCA/web project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.