From 5768aba2af9104f8a1714e5262dea58705cf77df Mon Sep 17 00:00:00 2001 From: augusto-weiss Date: Thu, 21 Nov 2024 10:30:59 -0300 Subject: [PATCH] [IMP] new table and migration script --- web_ir_actions_act_multi/README.rst | 6 ++++- web_ir_actions_act_multi/__manifest__.py | 2 +- .../migrations/17.0.2.0.0/post-migration.py | 23 +++++++++++++++++++ web_ir_actions_act_multi/models/ir_actions.py | 2 +- .../readme/CONTRIBUTORS.md | 5 +++- .../static/description/index.html | 19 ++++++++++----- 6 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 web_ir_actions_act_multi/migrations/17.0.2.0.0/post-migration.py diff --git a/web_ir_actions_act_multi/README.rst b/web_ir_actions_act_multi/README.rst index 8e03281e19a5..1e39fce5a50c 100644 --- a/web_ir_actions_act_multi/README.rst +++ b/web_ir_actions_act_multi/README.rst @@ -83,7 +83,11 @@ Contributors - Alexey Pelykh - Manuel Calero - Tecnativa -- Matias Peralta, Juan Rivero - Adhoc +- `Adhoc `__ + + - Matias Peralta + - Juan Rivero + - Augusto Weiss Maintainers ----------- diff --git a/web_ir_actions_act_multi/__manifest__.py b/web_ir_actions_act_multi/__manifest__.py index 956826de9cd6..c5e1df68de2b 100644 --- a/web_ir_actions_act_multi/__manifest__.py +++ b/web_ir_actions_act_multi/__manifest__.py @@ -8,7 +8,7 @@ "name": "Web Actions Multi", "summary": "Enables triggering of more than one action on ActionManager", "category": "Web", - "version": "17.0.1.0.0", + "version": "17.0.2.0.0", "license": "LGPL-3", "author": "Modoolar, " "CorporateHub, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", diff --git a/web_ir_actions_act_multi/migrations/17.0.2.0.0/post-migration.py b/web_ir_actions_act_multi/migrations/17.0.2.0.0/post-migration.py new file mode 100644 index 000000000000..68e70f78afc5 --- /dev/null +++ b/web_ir_actions_act_multi/migrations/17.0.2.0.0/post-migration.py @@ -0,0 +1,23 @@ +import logging + +_logger = logging.getLogger(__name__) + + +def migrate(cr, version): + _logger.info("Running migrate script for web_ir_actions_act_multi") + + cr.execute( + """ + INSERT INTO ir_actions_act_multi + SELECT * + FROM ir_actions + WHERE type = 'ir.actions.act_multi' + """ + ) + + cr.execute( + """ + DELETE FROM ir_actions + WHERE type = 'ir.actions.act_multi' + """ + ) diff --git a/web_ir_actions_act_multi/models/ir_actions.py b/web_ir_actions_act_multi/models/ir_actions.py index f440cf2f74cc..87032256c8c3 100644 --- a/web_ir_actions_act_multi/models/ir_actions.py +++ b/web_ir_actions_act_multi/models/ir_actions.py @@ -7,7 +7,7 @@ class IrActionsActMulti(models.Model): _name = "ir.actions.act_multi" _description = "Action Multi" _inherit = "ir.actions.actions" - _table = "ir_actions" + _table = "ir_actions_act_multi" type = fields.Char(default="ir.actions.act_multi") diff --git a/web_ir_actions_act_multi/readme/CONTRIBUTORS.md b/web_ir_actions_act_multi/readme/CONTRIBUTORS.md index 23bd24d42548..1f6536454f12 100644 --- a/web_ir_actions_act_multi/readme/CONTRIBUTORS.md +++ b/web_ir_actions_act_multi/readme/CONTRIBUTORS.md @@ -3,4 +3,7 @@ - [CorporateHub](https://corporatehub.eu/) - Alexey Pelykh \<\> - Manuel Calero - Tecnativa -- Matias Peralta, Juan Rivero - Adhoc +- [Adhoc](https://adhoc.com.ar/) + - Matias Peralta \<\> + - Juan Rivero \<\> + - Augusto Weiss \<\> diff --git a/web_ir_actions_act_multi/static/description/index.html b/web_ir_actions_act_multi/static/description/index.html index 6c44de68cbf0..45a452ed314c 100644 --- a/web_ir_actions_act_multi/static/description/index.html +++ b/web_ir_actions_act_multi/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,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. @@ -275,7 +275,7 @@ 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 } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -428,13 +428,20 @@

Contributors

  • Manuel Calero - Tecnativa
  • -
  • Matias Peralta, Juan Rivero - Adhoc
  • +
  • Adhoc +
  • 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.