Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docsource/modules180-190.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| analytic |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |new| api_doc | | |
| |new| api_doc |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| attachment_indexation |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down Expand Up @@ -76,7 +76,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| base_address_extended |Nothing to do |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| base_automation | | |
| base_automation |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| base_geolocalize |Nothing to do |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand All @@ -86,7 +86,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| base_import_module | |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| base_install_request | | |
| base_install_request |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| base_setup |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down Expand Up @@ -700,7 +700,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| loyalty | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| lunch | | |
| lunch |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| mail |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down Expand Up @@ -758,11 +758,11 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| mrp_repair | |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| mrp_subcontracting | | |
| mrp_subcontracting |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| mrp_subcontracting_account | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| mrp_subcontracting_dropshipping | | |
| mrp_subcontracting_dropshipping |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| mrp_subcontracting_landed_costs | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand All @@ -774,7 +774,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| partner_autocomplete | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |new| partnership | | |
| |new| partnership |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| payment |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down Expand Up @@ -914,7 +914,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| product_email_template | |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| product_expiry | | |
| product_expiry |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |del| product_images | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down Expand Up @@ -968,7 +968,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| purchase_repair | |No DB layout changes. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| purchase_requisition | | |
| purchase_requisition |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| purchase_requisition_sale | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand All @@ -978,7 +978,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| rating |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| repair | | |
| repair |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| resource |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down Expand Up @@ -1070,7 +1070,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| spreadsheet_dashboard_hr_timesheet | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| spreadsheet_dashboard_im_livechat | | |
| spreadsheet_dashboard_im_livechat |Nothing to do | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| spreadsheet_dashboard_pos_hr | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---Models in module 'api_doc'---


---Fields in module 'api_doc'---

---XML records in module 'api_doc'---
NEW ir.ui.view: api_doc.docclient
NEW res.groups: api_doc.group_allow_doc

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env, "base_automation", "19.0.1.0/noupdate_changes.xml")
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from openupgradelib import openupgrade

# 19.0's stored compute sets trg_date_range_mode='after' on every time
# trigger, but a constraint now requires a positive delay: 18.0 rules with
# a negative delay ("N before") would keep working (sign algebra) yet show
# "Delay: -N, After" and become un-editable. Pre-create the column and map
# negative delays to mode='before' with the absolute value.


@openupgrade.migrate()
def migrate(env, version):
if openupgrade.column_exists(env.cr, "base_automation", "trg_date_range_mode"):
return
openupgrade.logged_query(
env.cr, "ALTER TABLE base_automation ADD COLUMN trg_date_range_mode varchar"
)
openupgrade.logged_query(
env.cr,
"""
UPDATE base_automation
SET trg_date_range_mode = CASE
WHEN COALESCE(trg_date_range, 0) < 0 THEN 'before'
ELSE 'after'
END,
trg_date_range = ABS(COALESCE(trg_date_range, 0))
WHERE trigger IN ('on_time', 'on_time_created', 'on_time_updated')
""",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---Models in module 'base_automation'---


---Fields in module 'base_automation'---
base_automation / base.automation / activity_ids (one2many) : NEW relation: mail.activity
base_automation / base.automation / message_follower_ids (one2many): NEW relation: mail.followers
base_automation / base.automation / message_ids (one2many) : NEW relation: mail.message
base_automation / base.automation / previous_domain (char) : NEW hasdefault: default, stored: False
base_automation / base.automation / rating_ids (one2many) : NEW relation: rating.rating
base_automation / base.automation / trg_date_range_mode (selection): NEW selection_keys: ['after', 'before'], hasdefault: compute
base_automation / base.automation / website_message_ids (one2many): NEW relation: mail.message
base_automation / ir.actions.server / name (False) : DEL mode: modify

# DONE: pre-migration pre-creates trg_date_range_mode and maps negative delays to
# 'before' + ABS (the 19.0 compute would stamp 'after' everywhere and the new
# positive-delay constraint makes those rules un-editable); rest NOTHING TO DO

---XML records in module 'base_automation'---
NEW ir.ui.view: base_automation.view_server_action_form
DEL ir.ui.view: base_automation.ir_actions_server_view_form_automation

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env, "base_install_request", "19.0.1.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr,
"base_install_request",
[
"mail_template_base_install_request",
],
["body_html"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---Models in module 'base_install_request'---


---Fields in module 'base_install_request'---

---XML records in module 'base_install_request'---
NEW ir.model.access: base_install_request.access_ir_module_module_dependency_group_user
NEW ir.model.access: base_install_request.access_ir_module_module_exclusion_group_user

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---Models in module 'lunch'---


---Fields in module 'lunch'---

---XML records in module 'lunch'---
NEW ir.model.constraint: lunch.constraint_lunch_order_user_product_date
DEL ir.module.category: lunch.module_lunch_category
NEW res.groups.privilege: lunch.res_groups_privilege_lunch

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env, "mrp_subcontracting", "19.0.0.1/noupdate_changes.xml")
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---Models in module 'mrp_subcontracting'---


---Fields in module 'mrp_subcontracting'---
mrp_subcontracting / stock.location / is_subcontracting_location (boolean): DEL

# NOTHING TO DO

---XML records in module 'mrp_subcontracting'---
NEW ir.model.access: mrp_subcontracting.access_subcontracting_portal_mrp_production_serials
NEW ir.model.access: mrp_subcontracting.access_subcontracting_portal_sequence
DEL ir.rule: mrp_subcontracting.uom_subcontracting_rule
DEL ir.ui.view: mrp_subcontracting.view_location_form

# NOTHING TO DO
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade

_deleted_xmlids = [
"mrp_subcontracting_dropshipping.route_subcontracting_dropshipping",
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.delete_records_safely_by_xml_id(env, _deleted_xmlids)
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---Models in module 'mrp_subcontracting_dropshipping'---
---Fields in module 'mrp_subcontracting_dropshipping'---
mrp_subcontracting_dropshipping / purchase.order / default_location_dest_id_is_subcontracting_loc (boolean): not related anymore
mrp_subcontracting_dropshipping / purchase.order / default_location_dest_id_is_subcontracting_loc (boolean): now a function

# NOTHING TO DO: stored boolean becomes a non-stored compute; old PG column is ignored by the ORM

mrp_subcontracting_dropshipping / stock.warehouse / subcontracting_dropshipping_to_resupply (boolean): DEL

# NOTHING TO DO

---XML records in module 'mrp_subcontracting_dropshipping'---
DEL ir.ui.view: mrp_subcontracting_dropshipping.view_warehouse_inherit_mrp_subcontracting_dropshipping

# NOTHING TO DO: noupdate=False; --update removes it

DEL stock.route: mrp_subcontracting_dropshipping.route_subcontracting_dropshipping (noupdate)

# DONE: deleted in post-migration
41 changes: 41 additions & 0 deletions openupgrade_scripts/scripts/partnership/19.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
from openupgradelib import openupgrade

# These records move from website_crm_partner_assign (which now depends on
# partnership) — relocate the xml_ids so partnership's data load updates the
# existing rows instead of creating duplicate grades/menu/action/ACLs next
# to the preserved wcpa-owned ones.
_renamed_xmlids = [
(
"website_crm_partner_assign.res_partner_grade_action",
"partnership.res_partner_grade_action",
),
(
"website_crm_partner_assign.access_res_partner_grade",
"partnership.access_res_partner_grade",
),
(
"website_crm_partner_assign.access_res_partner_grade_manager",
"partnership.access_res_partner_grade_manager",
),
(
"website_crm_partner_assign.menu_res_partner_grade_action",
"partnership.menu_res_partner_grade_action",
),
(
"website_crm_partner_assign.res_partner_grade_data_bronze",
"partnership.res_partner_grade_data_bronze",
),
(
"website_crm_partner_assign.res_partner_grade_data_gold",
"partnership.res_partner_grade_data_gold",
),
(
"website_crm_partner_assign.res_partner_grade_data_silver",
"partnership.res_partner_grade_data_silver",
),
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_xmlids(env.cr, _renamed_xmlids)
Loading
Loading