Skip to content

Commit 5768aba

Browse files
committed
[IMP] new table and migration script
1 parent 088ddad commit 5768aba

File tree

6 files changed

+47
-10
lines changed

6 files changed

+47
-10
lines changed

web_ir_actions_act_multi/README.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ Contributors
8383
- Alexey Pelykh <alexey.pelykh@corphub.eu>
8484

8585
- Manuel Calero - Tecnativa
86-
- Matias Peralta, Juan Rivero - Adhoc
86+
- `Adhoc <https://adhoc.com.ar/>`__
87+
88+
- Matias Peralta <mnp@adhoc.com.ar>
89+
- Juan Rivero <jr@adhoc.com.ar>
90+
- Augusto Weiss <awe@adhoc.com.ar>
8791

8892
Maintainers
8993
-----------

web_ir_actions_act_multi/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "Web Actions Multi",
99
"summary": "Enables triggering of more than one action on ActionManager",
1010
"category": "Web",
11-
"version": "17.0.1.0.0",
11+
"version": "17.0.2.0.0",
1212
"license": "LGPL-3",
1313
"author": "Modoolar, " "CorporateHub, " "Odoo Community Association (OCA)",
1414
"website": "https://github.com/OCA/web",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import logging
2+
3+
_logger = logging.getLogger(__name__)
4+
5+
6+
def migrate(cr, version):
7+
_logger.info("Running migrate script for web_ir_actions_act_multi")
8+
9+
cr.execute(
10+
"""
11+
INSERT INTO ir_actions_act_multi
12+
SELECT *
13+
FROM ir_actions
14+
WHERE type = 'ir.actions.act_multi'
15+
"""
16+
)
17+
18+
cr.execute(
19+
"""
20+
DELETE FROM ir_actions
21+
WHERE type = 'ir.actions.act_multi'
22+
"""
23+
)

web_ir_actions_act_multi/models/ir_actions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class IrActionsActMulti(models.Model):
77
_name = "ir.actions.act_multi"
88
_description = "Action Multi"
99
_inherit = "ir.actions.actions"
10-
_table = "ir_actions"
10+
_table = "ir_actions_act_multi"
1111

1212
type = fields.Char(default="ir.actions.act_multi")
1313

web_ir_actions_act_multi/readme/CONTRIBUTORS.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
- [CorporateHub](https://corporatehub.eu/)
44
- Alexey Pelykh \<<alexey.pelykh@corphub.eu>\>
55
- Manuel Calero - Tecnativa
6-
- Matias Peralta, Juan Rivero - Adhoc
6+
- [Adhoc](https://adhoc.com.ar/)
7+
- Matias Peralta \<<mnp@adhoc.com.ar>\>
8+
- Juan Rivero \<<jr@adhoc.com.ar>\>
9+
- Augusto Weiss \<<awe@adhoc.com.ar>\>

web_ir_actions_act_multi/static/description/index.html

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -428,13 +428,20 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
428428
</ul>
429429
</li>
430430
<li>Manuel Calero - Tecnativa</li>
431-
<li>Matias Peralta, Juan Rivero - Adhoc</li>
431+
<li><a class="reference external" href="https://adhoc.com.ar/">Adhoc</a><ul>
432+
<li>Matias Peralta &lt;<a class="reference external" href="mailto:mnp&#64;adhoc.com.ar">mnp&#64;adhoc.com.ar</a>&gt;</li>
433+
<li>Juan Rivero &lt;<a class="reference external" href="mailto:jr&#64;adhoc.com.ar">jr&#64;adhoc.com.ar</a>&gt;</li>
434+
<li>Augusto Weiss &lt;<a class="reference external" href="mailto:awe&#64;adhoc.com.ar">awe&#64;adhoc.com.ar</a>&gt;</li>
435+
</ul>
436+
</li>
432437
</ul>
433438
</div>
434439
<div class="section" id="maintainers">
435440
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
436441
<p>This module is maintained by the OCA.</p>
437-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
442+
<a class="reference external image-reference" href="https://odoo-community.org">
443+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
444+
</a>
438445
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
439446
mission is to support the collaborative development of Odoo features and
440447
promote its widespread use.</p>

0 commit comments

Comments
 (0)