Skip to content

Commit

Permalink
Merge pull request #2682 from ForgeFlow/14.0-mig-note
Browse files Browse the repository at this point in the history
[14.0][MIG] note
  • Loading branch information
pedrobaeza authored Jun 6, 2021
2 parents 02e7374 + 66ef122 commit a15343c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/source/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
|mrp_subcontracting_dropshipping | |
+--------------------------------------------+-------------------------------------------------+
|note | |
|note | Done |
+--------------------------------------------+-------------------------------------------------+
|note_pad | |
+--------------------------------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="note_note_create_unlink_global" model="ir.rule">
<!-- <record id="note_note_create_unlink_global" model="ir.rule">
<field name="global"/>
</record>
<record id="note_note_rule_global" model="ir.rule">
<field name="global"/>
</record>
<record id="note_stage_rule_global" model="ir.rule">
<field name="global"/>
</record>
</record> -->
</odoo>
17 changes: 17 additions & 0 deletions openupgrade_scripts/scripts/note/14.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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,
"note",
[
"note_note_create_unlink_global",
"note_note_rule_global",
"note_stage_rule_global",
],
True,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---Models in module 'note'---
---Fields in module 'note'---
---XML records in module 'note'---
ir.rule: note.note_note_create_unlink_global (noupdate) (noupdate switched)
ir.rule: note.note_note_rule_global (noupdate) (noupdate switched)
ir.rule: note.note_stage_rule_global (noupdate) (noupdate switched)
# DONE: pre-migration: noupdate changed to "1", as there's no changes in records data

0 comments on commit a15343c

Please sign in to comment.