odoo-addon-openupgrade-scripts 17.0.1.0.1.386__py3-none-any.whl → 17.0.1.0.1.453__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/openupgrade_scripts/apriori.py +10 -0
- odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/end-migration.py +43 -0
- odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/post-migration.py +1 -1
- odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py +21 -3
- odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/upgrade_analysis_work.txt +1 -1
- odoo/addons/openupgrade_scripts/scripts/account_debit_note/17.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/account_edi_ubl_cii/17.0.1.0/end-migration.py +7 -4
- odoo/addons/openupgrade_scripts/scripts/account_fleet/17.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/auth_ldap/17.0.1.0/upgrade_analysis_work.txt +4 -0
- odoo/addons/openupgrade_scripts/scripts/base/17.0.1.3/pre-migration.py +29 -0
- odoo/addons/openupgrade_scripts/scripts/hr_attendance/17.0.2.0/post-migration.py +20 -0
- odoo/addons/openupgrade_scripts/scripts/hr_attendance/17.0.2.0/upgrade_analysis_work.txt +3 -2
- odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/pre-migration.py +13 -0
- odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/upgrade_analysis_work.txt +3 -1
- odoo/addons/openupgrade_scripts/scripts/hr_recruitment_skills/17.0.1.0/upgrade_analysis_work.txt +11 -0
- odoo/addons/openupgrade_scripts/scripts/hr_skills/17.0.1.0/upgrade_analysis_work.txt +20 -0
- odoo/addons/openupgrade_scripts/scripts/hr_skills_slides/17.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/hr_skills_survey/17.0.1.0/pre-migration.py +22 -0
- odoo/addons/openupgrade_scripts/scripts/hr_skills_survey/17.0.1.0/upgrade_analysis_work.txt +14 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_dk/17.0.1.3/post-migration.py +44 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_dk/17.0.1.3/upgrade_analysis_work.txt +570 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_es/17.0.5.4/pre-migration.py +11 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_es/17.0.5.4/upgrade_analysis_work.txt +1 -1
- odoo/addons/openupgrade_scripts/scripts/l10n_latam_base/17.0.1.0/upgrade_analysis_work.txt +6 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_latam_invoice_document/17.0.1.0/upgrade_analysis_work.txt +15 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_pt/17.0.1.0/post-migration.py +17 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_pt/17.0.1.0/pre-migration.py +29 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_pt/17.0.1.0/upgrade_analysis_work.txt +608 -0
- odoo/addons/openupgrade_scripts/scripts/loyalty/17.0.1.0/upgrade_analysis_work.txt +14 -0
- odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/pre-migration.py +18 -1
- odoo/addons/openupgrade_scripts/scripts/payment/17.0.2.0/noupdate_changes_work.xml +5 -3
- odoo/addons/openupgrade_scripts/scripts/payment/17.0.2.0/post-migration.py +532 -0
- odoo/addons/openupgrade_scripts/scripts/payment_custom/17.0.2.0/post-migration.py +11 -1
- odoo/addons/openupgrade_scripts/scripts/payment_demo/17.0.2.0/noupdate_changes.xml +2 -0
- odoo/addons/openupgrade_scripts/scripts/payment_demo/17.0.2.0/post-migration.py +21 -0
- odoo/addons/openupgrade_scripts/scripts/payment_demo/17.0.2.0/upgrade_analysis_work.txt +11 -0
- odoo/addons/openupgrade_scripts/scripts/point_of_sale/17.0.1.0.1/pre-migration.py +1 -0
- odoo/addons/openupgrade_scripts/scripts/point_of_sale/17.0.1.0.1/upgrade_analysis_work.txt +1 -1
- odoo/addons/openupgrade_scripts/scripts/pos_epson_printer/17.0.1.0/upgrade_analysis_work.txt +9 -0
- odoo/addons/openupgrade_scripts/scripts/pos_hr/17.0.1.0/pre-migration.py +10 -0
- odoo/addons/openupgrade_scripts/scripts/pos_hr/17.0.1.0/upgrade_analysis_work.txt +12 -0
- odoo/addons/openupgrade_scripts/scripts/pos_restaurant/17.0.1.0/post-migration.py +19 -0
- odoo/addons/openupgrade_scripts/scripts/pos_restaurant/17.0.1.0/upgrade_analysis_work.txt +47 -0
- odoo/addons/openupgrade_scripts/scripts/pos_sale/17.0.1.1/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/project/17.0.1.3/pre-migration.py +11 -0
- odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/post-migration.py +12 -0
- odoo/addons/openupgrade_scripts/scripts/sale/17.0.1.2/upgrade_analysis_work.txt +4 -0
- odoo/addons/openupgrade_scripts/scripts/sale_loyalty/17.0.1.0/upgrade_analysis_work.txt +9 -0
- odoo/addons/openupgrade_scripts/scripts/sale_loyalty_delivery/17.0.1.0/upgrade_analysis_work.txt +12 -0
- odoo/addons/openupgrade_scripts/scripts/web/17.0.1.0/pre-migration.py +16 -1
- odoo/addons/openupgrade_scripts/scripts/web_editor/17.0.1.0/post-migration.py +17 -0
- odoo/addons/openupgrade_scripts/scripts/website_crm_livechat/17.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale_loyalty/17.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale_picking/17.0.1.0/post-migration.py +15 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale_picking/17.0.1.0/pre-migration.py +19 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale_picking/17.0.1.0/upgrade_analysis_work.txt +12 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale_product_configurator/17.0.1.0/upgrade_analysis_work.txt +12 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.386.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.453.dist-info}/METADATA +2 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.386.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.453.dist-info}/RECORD +61 -27
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.386.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.453.dist-info}/WHEEL +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.386.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.453.dist-info}/top_level.txt +0 -0
|
@@ -45,7 +45,7 @@ point_of_sale / pos.order / config_id (many2one) : is no
|
|
|
45
45
|
# DONE: pre-migration: it's a related field, let's fill it session_id.config_id
|
|
46
46
|
|
|
47
47
|
point_of_sale / pos.order / last_order_preparation_change (char): NEW
|
|
48
|
-
#
|
|
48
|
+
# DONE: pre-migration: renamed from multiprint_resume (pos_restaurant)
|
|
49
49
|
|
|
50
50
|
point_of_sale / pos.order / shipping_date (date) : NEW
|
|
51
51
|
point_of_sale / pos.order / to_ship (boolean) : DEL
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---Models in module 'pos_epson_printer'---
|
|
2
|
+
---Fields in module 'pos_epson_printer'---
|
|
3
|
+
pos_epson_printer / restaurant.printer / epson_printer_ip (char) : previously in module pos_epson_printer_restaurant
|
|
4
|
+
pos_epson_printer / restaurant.printer / printer_type (False) : previously in module pos_epson_printer_restaurant
|
|
5
|
+
# NOTHING TO DO: fields moved from pos_epson_printer_restaurant module, which depends on pos_epson_printer, so these fields are available
|
|
6
|
+
|
|
7
|
+
---XML records in module 'pos_epson_printer'---
|
|
8
|
+
NEW ir.ui.view: pos_epson_printer.view_pos_printer_form
|
|
9
|
+
# NOTHING TO DO: Handled by ORM
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Carlos Lopez
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
from openupgradelib import openupgrade
|
|
4
|
+
|
|
5
|
+
_table_renames = [("hr_employee_pos_config_rel", "pos_hr_basic_employee_hr_employee")]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@openupgrade.migrate()
|
|
9
|
+
def migrate(env, version):
|
|
10
|
+
openupgrade.rename_tables(env.cr, _table_renames)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---Models in module 'pos_hr'---
|
|
2
|
+
---Fields in module 'pos_hr'---
|
|
3
|
+
pos_hr / pos.config / advanced_employee_ids (many2many): NEW relation: hr.employee
|
|
4
|
+
pos_hr / pos.config / basic_employee_ids (many2many): NEW relation: hr.employee
|
|
5
|
+
pos_hr / pos.config / employee_ids (many2many) : DEL relation: hr.employee
|
|
6
|
+
# DONE: pre-migration: rename table from hr_employee_pos_config_rel to pos_hr_basic_employee_hr_employee
|
|
7
|
+
# Fill basic_employee_ids with records from employee_ids to preserve the old behavior.
|
|
8
|
+
# The new field advanced_employee_ids is used for employees who do not have a user_id but can be considered managers.
|
|
9
|
+
# However, this feature must be set manually by the user if necessary,
|
|
10
|
+
# see https://github.com/odoo/odoo/commit/a3d530c846ffd0692ffe386ed9c2fc2991cdbb14
|
|
11
|
+
|
|
12
|
+
---XML records in module 'pos_hr'---
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Carlos Lopez
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
from openupgradelib import openupgrade
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def _restaurant_floor_convert_field_m2o_to_m2m(env):
|
|
7
|
+
# Convert m2o to m2m in 'restaurant.floor'
|
|
8
|
+
openupgrade.m2o_to_x2m(
|
|
9
|
+
env.cr,
|
|
10
|
+
env["restaurant.floor"],
|
|
11
|
+
"restaurant_floor",
|
|
12
|
+
"pos_config_ids",
|
|
13
|
+
"pos_config_id",
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@openupgrade.migrate()
|
|
18
|
+
def migrate(env, version):
|
|
19
|
+
_restaurant_floor_convert_field_m2o_to_m2m(env)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---Models in module 'pos_restaurant'---
|
|
2
|
+
obsolete model restaurant.printer (renamed to pos.printer in module point_of_sale)
|
|
3
|
+
# NOTHING TO DO: handled in the point_of_sale module migration scripts
|
|
4
|
+
|
|
5
|
+
---Fields in module 'pos_restaurant'---
|
|
6
|
+
pos_restaurant / pos.config / is_table_management (boolean) : DEL
|
|
7
|
+
# NOTHING TO DO: Odoo dropped these fields in https://github.com/odoo/odoo/commit/e3ad1eb058db6329b7f6b8e4880e3610eee22dd9
|
|
8
|
+
|
|
9
|
+
pos_restaurant / pos.config / module_pos_restaurant_appointment (boolean): NEW
|
|
10
|
+
# NOTHING TO DO: new feature used to install the pos_restaurant_appointment module in Enterprise
|
|
11
|
+
|
|
12
|
+
pos_restaurant / pos.order / multiprint_resume (char) : DEL
|
|
13
|
+
pos_restaurant / pos.order.line / mp_skip (boolean) : DEL
|
|
14
|
+
# NOTHING TO DO: handled in the point_of_sale module migration scripts
|
|
15
|
+
# https://github.com/OCA/OpenUpgrade/blob/03bd8c9c4be30e276162ebf861cd6a5f4527df41/openupgrade_scripts/scripts/point_of_sale/17.0.1.0.1/pre-migration.py#L13
|
|
16
|
+
|
|
17
|
+
pos_restaurant / pos.config / is_order_printer (boolean) : module is now 'point_of_sale' ('pos_restaurant')
|
|
18
|
+
pos_restaurant / pos.config / printer_ids (many2many) : module is now 'point_of_sale' ('pos_restaurant')
|
|
19
|
+
pos_restaurant / pos.config / printer_ids (many2many) : relation is now 'pos.printer' ('restaurant.printer') [nothing to do]
|
|
20
|
+
pos_restaurant / pos.order.line / uuid (char) : module is now 'point_of_sale' ('pos_restaurant')
|
|
21
|
+
# NOTHING TO DO: moved to the point_of_sale module
|
|
22
|
+
|
|
23
|
+
pos_restaurant / pos.config / floor_ids (one2many) : table is now 'pos_config_restaurant_floor_rel' ('False')
|
|
24
|
+
pos_restaurant / pos.config / floor_ids (one2many) : type is now 'many2many' ('one2many')
|
|
25
|
+
pos_restaurant / restaurant.floor / pos_config_id (many2one) : DEL relation: pos.config
|
|
26
|
+
pos_restaurant / restaurant.floor / pos_config_ids (many2many) : NEW relation: pos.config
|
|
27
|
+
# DONE: post-migration: convert m2o to m2m
|
|
28
|
+
|
|
29
|
+
pos_restaurant / restaurant.printer / _order : module is now 'point_of_sale' ('pos_restaurant')
|
|
30
|
+
pos_restaurant / restaurant.printer / display_name (char) : module is now 'point_of_sale' ('pos_restaurant')
|
|
31
|
+
pos_restaurant / restaurant.printer / name (char) : module is now 'point_of_sale' ('pos_restaurant')
|
|
32
|
+
pos_restaurant / restaurant.printer / printer_type (selection) : module is now 'point_of_sale' ('pos_restaurant')
|
|
33
|
+
pos_restaurant / restaurant.printer / product_categories_ids (many2many): module is now 'point_of_sale' ('pos_restaurant')
|
|
34
|
+
pos_restaurant / restaurant.printer / proxy_ip (char) : module is now 'point_of_sale' ('pos_restaurant')
|
|
35
|
+
# NOTHING TO DO: handled in the point_of_sale module migration scripts
|
|
36
|
+
|
|
37
|
+
---XML records in module 'pos_restaurant'---
|
|
38
|
+
DEL ir.actions.act_window: pos_restaurant.action_restaurant_printer_form
|
|
39
|
+
DEL ir.model.access: pos_restaurant.access_restaurant_printer
|
|
40
|
+
DEL ir.model.access: pos_restaurant.access_restaurant_printer_manager
|
|
41
|
+
DEL ir.ui.menu: pos_restaurant.menu_restaurant_printer_all
|
|
42
|
+
DEL ir.ui.view: pos_restaurant.view_restaurant_printer
|
|
43
|
+
DEL ir.ui.view: pos_restaurant.view_restaurant_printer_form
|
|
44
|
+
# NOTHING TO DO: moved to the point_of_sale module
|
|
45
|
+
|
|
46
|
+
NEW pos.config: pos_restaurant.pos_config_main_restaurant (noupdate)
|
|
47
|
+
# NOTHING TO DO: new feature
|
|
@@ -76,3 +76,14 @@ def migrate(env, version):
|
|
|
76
76
|
_rename_fields(env)
|
|
77
77
|
_convert_project_task_state(env)
|
|
78
78
|
_set_default_analytic_plan_id(env)
|
|
79
|
+
openupgrade.set_xml_ids_noupdate_value(
|
|
80
|
+
env,
|
|
81
|
+
"project",
|
|
82
|
+
[
|
|
83
|
+
"project_project_stage_0",
|
|
84
|
+
"project_project_stage_1",
|
|
85
|
+
"project_project_stage_2",
|
|
86
|
+
"project_project_stage_3",
|
|
87
|
+
],
|
|
88
|
+
True,
|
|
89
|
+
)
|
|
@@ -16,9 +16,21 @@ def _sale_order_populate_locked_field(env):
|
|
|
16
16
|
WHERE state = 'done'
|
|
17
17
|
""",
|
|
18
18
|
)
|
|
19
|
+
# Update by SQL the corresponding related state field in sale.order.line
|
|
20
|
+
openupgrade.logged_query(
|
|
21
|
+
env.cr, "UPDATE sale_order_line SET state = 'sale' WHERE state = 'done'"
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _fill_res_company_deposit_default_product_id(env):
|
|
26
|
+
product_id = env["ir.config_parameter"].get_param("sale.default_deposit_product_id")
|
|
27
|
+
if product_id:
|
|
28
|
+
companies = env["res.company"].search([])
|
|
29
|
+
companies.write({"sale_down_payment_product_id": int(product_id)})
|
|
19
30
|
|
|
20
31
|
|
|
21
32
|
@openupgrade.migrate()
|
|
22
33
|
def migrate(env, version):
|
|
23
34
|
openupgrade.load_data(env, "sale", "17.0.1.2/noupdate_changes.xml")
|
|
24
35
|
_sale_order_populate_locked_field(env)
|
|
36
|
+
_fill_res_company_deposit_default_product_id(env)
|
|
@@ -11,7 +11,11 @@ sale / product.document / attached_on (selection) : NEW se
|
|
|
11
11
|
|
|
12
12
|
sale / res.company / prepayment_percent (float) : NEW hasdefault: default
|
|
13
13
|
sale / res.company / sale_discount_product_id (many2one): NEW relation: product.product
|
|
14
|
+
# NOTHING TO DO
|
|
15
|
+
|
|
14
16
|
sale / res.company / sale_down_payment_product_id (many2one): NEW relation: product.product
|
|
17
|
+
# DONE post-migration: migrate value from config parameter `sale.default_deposit_product_id`
|
|
18
|
+
|
|
15
19
|
sale / res.company / sale_onboarding_order_confirmation_state (selection): DEL selection_keys: ['done', 'just_done', 'not_done']
|
|
16
20
|
sale / res.company / sale_onboarding_sample_quotation_state (selection): DEL selection_keys: ['done', 'just_done', 'not_done']
|
|
17
21
|
sale / res.company / sale_quotation_onboarding_state (selection): DEL selection_keys: ['closed', 'done', 'just_done', 'not_done']
|
odoo/addons/openupgrade_scripts/scripts/sale_loyalty_delivery/17.0.1.0/upgrade_analysis_work.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---Models in module 'sale_loyalty_delivery'---
|
|
2
|
+
# NOTHING TO DO
|
|
3
|
+
|
|
4
|
+
---Fields in module 'sale_loyalty_delivery'---
|
|
5
|
+
# NOTHING TO DO
|
|
6
|
+
|
|
7
|
+
---XML records in module 'sale_loyalty_delivery'---
|
|
8
|
+
NEW ir.ui.view: sale_loyalty_delivery.loyalty_reward_view_form_inherit_loyalty_delivery
|
|
9
|
+
NEW ir.ui.view: sale_loyalty_delivery.loyalty_reward_view_kanban_inherit_loyalty_delivery
|
|
10
|
+
DEL ir.ui.view: loyalty_delivery.loyalty_reward_view_form_inherit_loyalty_delivery
|
|
11
|
+
DEL ir.ui.view: loyalty_delivery.loyalty_reward_view_kanban_inherit_loyalty_delivery
|
|
12
|
+
# NOTHING TO DO
|
|
@@ -6,7 +6,8 @@ from openupgradelib import openupgrade
|
|
|
6
6
|
|
|
7
7
|
@openupgrade.migrate()
|
|
8
8
|
def migrate(env, version):
|
|
9
|
-
|
|
9
|
+
ICP = env["ir.config_parameter"]
|
|
10
|
+
web_pwa_oca_installed = ICP.get_param("pwa.manifest.name")
|
|
10
11
|
if web_pwa_oca_installed:
|
|
11
12
|
openupgrade.rename_fields(
|
|
12
13
|
env,
|
|
@@ -27,3 +28,17 @@ def migrate(env, version):
|
|
|
27
28
|
WHERE key = 'pwa.manifest.name'
|
|
28
29
|
""",
|
|
29
30
|
)
|
|
31
|
+
# Deduce whether it is necessary to install web_pwa_customize based on the
|
|
32
|
+
# values previously defined in web_pwa_oca and the values that web will now use.
|
|
33
|
+
short_name = ICP.get_param("pwa.manifest.short_name")
|
|
34
|
+
background_color = ICP.get_param("pwa.manifest.background_color")
|
|
35
|
+
theme_color = ICP.get_param("pwa.manifest.theme_color")
|
|
36
|
+
if short_name or background_color != "#714B67" or theme_color != "#714B67":
|
|
37
|
+
openupgrade.logged_query(
|
|
38
|
+
env.cr,
|
|
39
|
+
"""
|
|
40
|
+
UPDATE ir_module_module
|
|
41
|
+
SET state = 'to install'
|
|
42
|
+
WHERE name = 'web_pwa_customize'
|
|
43
|
+
""",
|
|
44
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from openupgradelib import openupgrade
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def convert_assets(env):
|
|
5
|
+
for asset in env["ir.asset"].search([("path", "like", ".custom.")]):
|
|
6
|
+
path_1, extra = asset.path.split(".custom.", 1)
|
|
7
|
+
bundle_1, bundle_2, path_2 = extra.split(".", 2)
|
|
8
|
+
path = f"{path_1}.{path_2}"
|
|
9
|
+
bundle = f"{bundle_1}.{bundle_2}"
|
|
10
|
+
new_path = f"/_custom/{bundle}{path}"
|
|
11
|
+
env["ir.attachment"].search([("url", "=", asset.path)]).write({"url": new_path})
|
|
12
|
+
asset.write({"path": new_path})
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@openupgrade.migrate()
|
|
16
|
+
def migrate(env, version):
|
|
17
|
+
convert_assets(env)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Carlos Lopez
|
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
3
|
+
|
|
4
|
+
from openupgradelib import openupgrade
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@openupgrade.migrate()
|
|
8
|
+
def migrate(env, version):
|
|
9
|
+
openupgrade.load_data(env, "website_sale_picking", "17.0.1.0/noupdate_changes.xml")
|
|
10
|
+
openupgrade.delete_record_translations(
|
|
11
|
+
env.cr,
|
|
12
|
+
"website_sale_picking",
|
|
13
|
+
["onsite_delivery_product"],
|
|
14
|
+
["description"],
|
|
15
|
+
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Carlos Lopez
|
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
3
|
+
from openupgradelib import openupgrade
|
|
4
|
+
|
|
5
|
+
_noupdate_xmlids = ["payment_provider_onsite"]
|
|
6
|
+
_xmlid_renames = [
|
|
7
|
+
(
|
|
8
|
+
"website_sale_picking.checkout_payment",
|
|
9
|
+
"website_sale_picking.payment_method_form",
|
|
10
|
+
)
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@openupgrade.migrate()
|
|
15
|
+
def migrate(env, version):
|
|
16
|
+
openupgrade.set_xml_ids_noupdate_value(
|
|
17
|
+
env, "website_sale_picking", _noupdate_xmlids, False
|
|
18
|
+
)
|
|
19
|
+
openupgrade.rename_xmlids(env.cr, _xmlid_renames)
|
odoo/addons/openupgrade_scripts/scripts/website_sale_picking/17.0.1.0/upgrade_analysis_work.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---Models in module 'website_sale_picking'---
|
|
2
|
+
---Fields in module 'website_sale_picking'---
|
|
3
|
+
---XML records in module 'website_sale_picking'---
|
|
4
|
+
NEW ir.ui.view: website_sale_picking.payment_method_form
|
|
5
|
+
DEL ir.ui.view: website_sale_picking.checkout_payment
|
|
6
|
+
# DONE: pre-migration: XML-ID renamed
|
|
7
|
+
|
|
8
|
+
NEW payment.method: website_sale_picking.payment_method_pay_on_site
|
|
9
|
+
# NOTHING TO DO: New record used to set in payment.provider payment_provider_onsite
|
|
10
|
+
|
|
11
|
+
payment.provider: website_sale_picking.payment_provider_onsite (noupdate switched)
|
|
12
|
+
# DONE: pre-migration: Switch noupdate flag
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---Models in module 'website_sale_product_configurator'---
|
|
2
|
+
---Fields in module 'website_sale_product_configurator'---
|
|
3
|
+
---XML records in module 'website_sale_product_configurator'---
|
|
4
|
+
NEW ir.ui.view: website_sale_product_configurator.configure_optional_products
|
|
5
|
+
NEW ir.ui.view: website_sale_product_configurator.optional_product_items
|
|
6
|
+
NEW ir.ui.view: website_sale_product_configurator.optional_products_modal
|
|
7
|
+
NEW ir.ui.view: website_sale_product_configurator.product_quantity_config
|
|
8
|
+
DEL ir.ui.view: website_sale_product_configurator.configure_optional_products_website
|
|
9
|
+
DEL ir.ui.view: website_sale_product_configurator.optional_product_items_website
|
|
10
|
+
DEL ir.ui.view: website_sale_product_configurator.product_quantity_config_website
|
|
11
|
+
DEL ir.ui.view: website_sale_stock_product_configurator.website_sale_stock_modal
|
|
12
|
+
# NOTHING TO DO: New views do not have an inherit_id field set, so let the ORM recreate the records.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-openupgrade_scripts
|
|
3
|
-
Version: 17.0.1.0.1.
|
|
3
|
+
Version: 17.0.1.0.1.453
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo>=17.0a,<17.1dev
|
|
6
6
|
Requires-Dist: openupgradelib
|
|
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python
|
|
|
13
13
|
Classifier: Framework :: Odoo
|
|
14
14
|
Classifier: Framework :: Odoo :: 17.0
|
|
15
15
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
16
|
+
Description-Content-Type: text/x-rst
|
|
16
17
|
|
|
17
18
|
===================
|
|
18
19
|
Openupgrade Scripts
|