Skip to content

Commit

Permalink
[14.0][MIG] board
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulOForgeFlow authored and pedrobaeza committed Jun 6, 2021
1 parent 02e7374 commit 7579055
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
|base_vat | |
+--------------------------------------------+-------------------------------------------------+
|board | |
|board | Done |
+--------------------------------------------+-------------------------------------------------+
|bus | Nothing to do |
+--------------------------------------------+-------------------------------------------------+
Expand Down
13 changes: 13 additions & 0 deletions openupgrade_scripts/scripts/board/14.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2021 ForgeFlow S.L. <https://www.forgeflow.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.set_xml_ids_noupdate_value(
env,
"board",
["menu_board_my_dash"],
False,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---Models in module 'board'---
---Fields in module 'board'---
---XML records in module 'board'---
NEW ir.model.access: board.access_board_board_all
DEL ir.model.access: board.access_board_board all
# NOTHING TO DO: noupdate="0" records

ir.ui.menu: board.menu_board_my_dash (noupdate switched)
# DONE: pre-migration: switched to noupdate = "0"

0 comments on commit 7579055

Please sign in to comment.