Skip to content

Commit

Permalink
[MIG] maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Sep 23, 2021
1 parent 3533d69 commit 71e7470
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docsource/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
| |new| mail_client_extension | |
+--------------------------------------------+-------------------------------------------------+
|maintenance | |
|maintenance | Done |
+--------------------------------------------+-------------------------------------------------+
|mass_mailing | |
+--------------------------------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="maintenance_equipment_category_comp_rule" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="maintenance_equipment_comp_rule" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="maintenance_request_comp_rule" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="maintenance_team_comp_rule" model="ir.rule">
<field name="global"/>
<!-- <field name="global"/>-->
</record>
<record id="mt_cat_mat_assign" model="mail.message.subtype">
<field name="parent_id" ref="mt_mat_assign"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright 2021 ForgeFlow S.L. <https://www.forgeflow.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env.cr, "maintenance", "14.0.1.0/noupdate_changes.xml")
22 changes: 22 additions & 0 deletions openupgrade_scripts/scripts/maintenance/14.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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,
"maintenance",
[
"equipment_request_rule_admin_user",
"equipment_request_rule_user",
"equipment_rule_admin_user",
"equipment_rule_user",
"maintenance_equipment_category_comp_rule",
"maintenance_equipment_comp_rule",
"maintenance_request_comp_rule",
"maintenance_team_comp_rule",
],
True,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---Models in module 'maintenance'---
---Fields in module 'maintenance'---
---XML records in module 'maintenance'---
ir.rule: maintenance.equipment_request_rule_admin_user (noupdate) (noupdate switched)
ir.rule: maintenance.equipment_request_rule_user (noupdate) (noupdate switched)
ir.rule: maintenance.equipment_rule_admin_user (noupdate) (noupdate switched)
ir.rule: maintenance.equipment_rule_user (noupdate) (noupdate switched)
ir.rule: maintenance.maintenance_equipment_category_comp_rule (noupdate) (noupdate switched)
ir.rule: maintenance.maintenance_equipment_comp_rule (noupdate) (noupdate switched)
ir.rule: maintenance.maintenance_request_comp_rule (noupdate) (noupdate switched)
ir.rule: maintenance.maintenance_team_comp_rule (noupdate) (noupdate switched)
# DONE: pre-migration: switched noupdate

0 comments on commit 71e7470

Please sign in to comment.