Skip to content

Commit a01cfad

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

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

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,18 @@
1+
import logging
2+
_logger = logging.getLogger(__name__)
3+
4+
5+
def migrate(cr, version):
6+
_logger.info('Running migrate script for web_ir_actions_act_multi')
7+
8+
cr.execute("""
9+
INSERT INTO ir_actions_act_multi
10+
SELECT *
11+
FROM ir_actions
12+
WHERE type = 'ir.actions.act_multi'
13+
""")
14+
15+
cr.execute("""
16+
DELETE FROM ir_actions
17+
WHERE type = 'ir.actions.act_multi'
18+
""")

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

0 commit comments

Comments
 (0)