Skip to content
Merged
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
2 changes: 1 addition & 1 deletion docsource/modules160-170.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ Module coverage 16.0 -> 17.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |new| website_sale_mondialrelay | |Renamed from website_sale_delivery_mondialrelay. |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| website_sale_picking | | |
| website_sale_picking | Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| website_sale_product_configurator | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2025 Tecnativa - Carlos Lopez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(env, "website_sale_picking", "17.0.1.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
env.cr,
"website_sale_picking",
["onsite_delivery_product"],
["description"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2025 Tecnativa - Carlos Lopez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade

_noupdate_xmlids = ["payment_provider_onsite"]
_xmlid_renames = [
(
"website_sale_picking.checkout_payment",
"website_sale_picking.payment_method_form",
)
]


@openupgrade.migrate()
def migrate(env, version):
openupgrade.set_xml_ids_noupdate_value(
env, "website_sale_picking", _noupdate_xmlids, False
)
openupgrade.rename_xmlids(env.cr, _xmlid_renames)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---Models in module 'website_sale_picking'---
---Fields in module 'website_sale_picking'---
---XML records in module 'website_sale_picking'---
NEW ir.ui.view: website_sale_picking.payment_method_form
DEL ir.ui.view: website_sale_picking.checkout_payment
# DONE: pre-migration: XML-ID renamed

NEW payment.method: website_sale_picking.payment_method_pay_on_site
# NOTHING TO DO: New record used to set in payment.provider payment_provider_onsite

payment.provider: website_sale_picking.payment_provider_onsite (noupdate switched)
# DONE: pre-migration: Switch noupdate flag