-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] new table and migration script
- Loading branch information
1 parent
088ddad
commit a01cfad
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
web_ir_actions_act_multi/migrations/17.0.2.0.0/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
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' | ||
""") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters