odoo-addon-openupgrade-scripts 16.0.1.0.3.172__py3-none-any.whl → 16.0.1.0.3.175__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.
@@ -38,6 +38,7 @@
38
38
  <field name="name">Ecommerce: Cart Recovery</field>
39
39
  <field name="description">If the setting is set, sent to authenticated visitors who abandoned their cart</field>
40
40
  </record>
41
+ <!-- Keep the ribbons as they were customized in v15
41
42
  <record id="new_ribbon" model="product.ribbon">
42
43
  <field name="html_class">text-bg-primary o_ribbon_left</field>
43
44
  </record>
@@ -52,5 +53,5 @@
52
53
  </record>
53
54
  <record id="sold_out_ribbon" model="product.ribbon">
54
55
  <field name="html_class">text-bg-danger o_ribbon_left</field>
55
- </record>
56
+ </record> -->
56
57
  </odoo>
@@ -0,0 +1,23 @@
1
+ # Copyright 2024 Tecnativa - Pedro M. Baeza
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+ from openupgradelib import openupgrade
4
+
5
+
6
+ def _convert_add_to_cart_action(env):
7
+ """Old boolean is now a selection. Let's convert it for those websites not matching
8
+ the default value.
9
+ """
10
+ openupgrade.logged_query(
11
+ env.cr,
12
+ "UPDATE website SET add_to_cart_action = 'go_to_cart' "
13
+ "WHERE NOT cart_add_on_page",
14
+ )
15
+
16
+
17
+ @openupgrade.migrate()
18
+ def migrate(env, version):
19
+ _convert_add_to_cart_action(env)
20
+ openupgrade.load_data(env.cr, "website_sale", "16.0.1.1/noupdate_changes.xml")
21
+ openupgrade.delete_record_translations(
22
+ env.cr, "website_sale", ["mail_template_sale_cart_recovery"]
23
+ )
@@ -0,0 +1,49 @@
1
+ # Copyright 2024 Tecnativa - Pedro M. Baeza
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+ from openupgradelib import openupgrade
4
+
5
+ _fields_renames = [
6
+ (
7
+ "res.company",
8
+ "res_company",
9
+ "website_sale_onboarding_payment_acquirer_state",
10
+ "website_sale_onboarding_payment_provider_state",
11
+ ),
12
+ ]
13
+ _xmlid_renames = [
14
+ (
15
+ "website_sale_stock_wishlist.ir_cron_send_availability_email",
16
+ "website_sale.ir_cron_send_availability_email",
17
+ )
18
+ ]
19
+ _not_noupdate_xml_ids = [
20
+ "s_dynamic_snippet_products_000_scss",
21
+ "dynamic_filter_template_product_product_add_to_cart",
22
+ "dynamic_filter_template_product_product_banner",
23
+ "dynamic_filter_template_product_product_borderless_1",
24
+ "dynamic_filter_template_product_product_borderless_2",
25
+ "dynamic_filter_template_product_product_centered",
26
+ "dynamic_filter_template_product_product_horizontal_card",
27
+ "dynamic_filter_template_product_product_mini_image",
28
+ "dynamic_filter_template_product_product_mini_name",
29
+ "dynamic_filter_template_product_product_mini_price",
30
+ "dynamic_filter_template_product_product_view_detail",
31
+ "price_dynamic_filter_template_product_product",
32
+ ]
33
+
34
+
35
+ def _remove_incorrect_website_sale_extra_field_records(env):
36
+ openupgrade.logged_query(
37
+ env.cr,
38
+ "DELETE FROM website_sale_extra_field WHERE field_id IS NULL",
39
+ )
40
+
41
+
42
+ @openupgrade.migrate()
43
+ def migrate(env, version):
44
+ openupgrade.rename_fields(env, _fields_renames)
45
+ openupgrade.rename_xmlids(env.cr, _xmlid_renames)
46
+ openupgrade.set_xml_ids_noupdate_value(
47
+ env, "website_sale", _not_noupdate_xml_ids, False
48
+ )
49
+ _remove_incorrect_website_sale_extra_field_records(env)
@@ -0,0 +1,143 @@
1
+ ---Models in module 'website_sale'---
2
+ obsolete model website.sale.payment.acquirer.onboarding.wizard [transient]
3
+ # NOTHING TO DO: transient model
4
+
5
+ ---Fields in module 'website_sale'---
6
+ website_sale / product.ribbon / product_tag_ids (one2many) : NEW relation: product.tag
7
+ website_sale / product.tag / ribbon_id (many2one) : NEW relation: product.ribbon
8
+ # NOTHING TO DO: New feature for linking a ribbon with a product tag
9
+
10
+ website_sale / product.tag / website_id (many2one) : NEW relation: website
11
+ # NOTHING TO DO: New feature of tags now being website specific
12
+
13
+ website_sale / product.template / compare_list_price (float) : NEW
14
+ # NOTHING TO DO: New feature for showing a strike-through price in the e-commerce comparison
15
+
16
+ website_sale / res.company / website_sale_onboarding_payment_acquirer_state (selection): DEL selection_keys: ['done', 'just_done', 'not_done']
17
+ website_sale / res.company / website_sale_onboarding_payment_provider_state (selection): NEW selection_keys: ['done', 'just_done', 'not_done'], hasdefault: default
18
+ # DONE: pre-migration: Field renamed
19
+
20
+ website_sale / sale.order / shop_warning (char) : NEW
21
+ website_sale / sale.order.line / shop_warning (char) : NEW
22
+ # NOTHING TO DO: New feature for showing alerts on the e-commerce cart
23
+
24
+ website_sale / website / account_on_checkout (selection): NEW selection_keys: ['disabled', 'mandatory', 'optional'], hasdefault: default
25
+ # NOTHING TO DO: New feature for requiring to sign-in to checkout. Default value `optional` preserves v15 behavior.
26
+
27
+ website_sale / website / add_to_cart_action (selection): NEW selection_keys: ['go_to_cart', 'stay'], hasdefault: default
28
+ website_sale / website / cart_add_on_page (boolean) : DEL
29
+ # DONE: post-migration: Convert `cart_add_on_page` to `add_to_cart_action`
30
+
31
+ website_sale / website / contact_us_button_url (char) : NEW hasdefault: default
32
+ # NOTHING TO DO: New feature for "Contact Us" target URL on product page with the default the same as in v15.
33
+
34
+ website_sale / website / enabled_portal_reorder_button (boolean): NEW
35
+ # NOTHING TO DO: New feature for ordering again a sales order from the portal. Default False is preserving v15 behavior.
36
+
37
+ website_sale / website / prevent_zero_price_sale (boolean): NEW
38
+ website_sale / website / prevent_zero_price_sale_text (char): NEW hasdefault: default
39
+ # NOTHING TO DO: New feature for preventing to add products to cart with the default False preserving previous behavior.
40
+
41
+ website_sale / website / product_page_grid_columns (integer): NEW hasdefault: default
42
+ website_sale / website / product_page_image_layout (selection): NEW required, selection_keys: ['carousel', 'grid'], hasdefault: default
43
+ website_sale / website / product_page_image_spacing (selection): NEW required, selection_keys: ['big', 'medium', 'none', 'small'], hasdefault: default
44
+ website_sale / website / product_page_image_width (selection): NEW required, selection_keys: ['100_pc', '50_pc', '66_pc', 'none'], hasdefault: default
45
+ # NOTHING TO DO: New features for adjusting product images in the e-commerce product page with sane defaults preserving behavior.
46
+
47
+ website_sale / website / send_abandoned_cart_email (boolean): NEW
48
+ # NOTHING TO DO: New feature for sending automatically the lost cart mail. Default value `False` is preserving v15 behavior.
49
+
50
+ website_sale / website / shop_default_sort (selection) : NEW required, selection_keys: function, hasdefault: default
51
+ # NOTHING TO DO: New feature for default sorting of the products in the e-commerce. The default seems to be the same as in v15.
52
+
53
+ website_sale / website.sale.extra.field / field_id (many2one) : now required
54
+ # DONE: pre-migration: Delete offending records
55
+
56
+ ---XML records in module 'website_sale'---
57
+ NEW ir.actions.act_window: website_sale.action_product_pages_list
58
+ NEW ir.actions.act_window: website_sale.product_product_action_add
59
+ NEW ir.actions.act_window: website_sale.product_public_tags_action
60
+ DEL ir.actions.act_window: website_sale.action_open_website_sale_onboarding_payment_acquirer_wizard
61
+ NEW ir.actions.server: website_sale.dynamic_snippet_alternative_products
62
+ NEW ir.asset: website_sale.s_add_to_cart_000_js
63
+ NEW ir.model.access: website_sale.access_ecom_extra_fields_restricted_editor
64
+ NEW ir.model.access: website_sale.access_product_image_restricted_editor
65
+ NEW ir.model.access: website_sale.access_product_tag_public
66
+ DEL ir.model.access: website_sale.access_ecom_extra_fields_publisher
67
+ DEL ir.model.access: website_sale.access_product_image_publisher
68
+ DEL ir.model.access: website_sale.access_website_sale_payment_acquirer_onboarding_wizard
69
+ NEW ir.ui.menu: website_sale.menu_ecommerce
70
+ NEW ir.ui.menu: website_sale.menu_ecommerce_payment_providers
71
+ NEW ir.ui.menu: website_sale.menu_product_pages
72
+ NEW ir.ui.menu: website_sale.product_catalog_product_tags
73
+ DEL ir.ui.menu: website_sale.menu_ecommerce_payment_acquirers
74
+ DEL ir.ui.menu: website_sale.menu_product_settings
75
+ DEL ir.ui.menu: website_sale.product_catalog_variants
76
+ DEL ir.ui.menu: website_sale.website_base_unit_menu
77
+ NEW ir.ui.view: website_sale.alternative_products
78
+ NEW ir.ui.view: website_sale.dynamic_filter_template_product_product_card_group
79
+ NEW ir.ui.view: website_sale.dynamic_filter_template_product_product_horizontal_card_2
80
+ NEW ir.ui.view: website_sale.filmstrip_categories
81
+ NEW ir.ui.view: website_sale.o_wsale_offcanvas
82
+ NEW ir.ui.view: website_sale.product_category_extra_link
83
+ NEW ir.ui.view: website_sale.product_pages_kanban_view
84
+ NEW ir.ui.view: website_sale.product_pages_tree_view
85
+ NEW ir.ui.view: website_sale.product_picture_magnify_both
86
+ NEW ir.ui.view: website_sale.product_picture_magnify_click
87
+ NEW ir.ui.view: website_sale.product_picture_magnify_hover
88
+ NEW ir.ui.view: website_sale.product_product_view_form_add
89
+ NEW ir.ui.view: website_sale.product_tag_form_view_inherit_website_sale
90
+ NEW ir.ui.view: website_sale.product_tag_tree_view_inherit_website_sale
91
+ NEW ir.ui.view: website_sale.products_attributes_top
92
+ NEW ir.ui.view: website_sale.products_categories_list
93
+ NEW ir.ui.view: website_sale.products_categories_top
94
+ NEW ir.ui.view: website_sale.products_design_card
95
+ NEW ir.ui.view: website_sale.products_design_grid
96
+ NEW ir.ui.view: website_sale.products_design_thumbs
97
+ NEW ir.ui.view: website_sale.products_fiscal_position
98
+ NEW ir.ui.view: website_sale.products_thumb_2_3
99
+ NEW ir.ui.view: website_sale.products_thumb_4_3
100
+ NEW ir.ui.view: website_sale.products_thumb_4_5
101
+ NEW ir.ui.view: website_sale.products_thumb_cover
102
+ NEW ir.ui.view: website_sale.res_config_settings_view_form_inherit_sale
103
+ NEW ir.ui.view: website_sale.s_add_to_cart
104
+ NEW ir.ui.view: website_sale.s_add_to_cart_options
105
+ NEW ir.ui.view: website_sale.sale_order_re_order_btn
106
+ NEW ir.ui.view: website_sale.shop_product_grid
107
+ NEW ir.ui.view: website_sale.shop_product_image
108
+ NEW ir.ui.view: website_sale.shop_product_images
109
+ NEW ir.ui.view: website_sale.snippets_options_web_editor
110
+ NEW ir.ui.view: website_sale.tax_indication
111
+ DEL ir.ui.view: website_sale.product_edit_options
112
+ DEL ir.ui.view: website_sale.product_picture_magnify
113
+ DEL ir.ui.view: website_sale.product_picture_magnify_auto
114
+ DEL ir.ui.view: website_sale.products_images_full
115
+ DEL ir.ui.view: website_sale.recommended_products
116
+ DEL ir.ui.view: website_sale.search_count_box
117
+ DEL ir.ui.view: website_sale.user_navbar_inherit_website_sale
118
+ DEL ir.ui.view: website_sale.website_sale_onboarding_payment_acquirer_step
119
+ NEW website.snippet.filter: website_sale.dynamic_filter_cross_selling_alternative_products
120
+ # NOTHING TO DO: noupdate=0 records
121
+
122
+ NEW ir.cron: website_sale.ir_cron_send_availability_email [renamed from website_sale_stock_wishlist module]
123
+ # DONE: pre-migration: XML-ID renamed
124
+
125
+ DEL ir.ui.menu: website_sale.menu_reporting [renamed to website module]
126
+ # NOTHING TO DO: Already renamed in website scripts
127
+
128
+ ir.asset: website_sale.s_dynamic_snippet_products_000_scss (noupdate switched)
129
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_add_to_cart (noupdate switched)
130
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_banner (noupdate switched)
131
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_borderless_1 (noupdate switched)
132
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_borderless_2 (noupdate switched)
133
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_centered (noupdate switched)
134
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_horizontal_card (noupdate switched)
135
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_mini_image (noupdate switched)
136
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_mini_name (noupdate switched)
137
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_mini_price (noupdate switched)
138
+ ir.ui.view: website_sale.dynamic_filter_template_product_product_view_detail (noupdate switched)
139
+ ir.ui.view: website_sale.price_dynamic_filter_template_product_product (noupdate switched)
140
+ # DONE: pre-migration: noupdate switched
141
+
142
+ NEW res.groups: website_sale.group_product_price_comparison (noupdate)
143
+ # NOTHING TO DO: New record
@@ -0,0 +1,8 @@
1
+ ---Models in module 'website_sale_comparison'---
2
+ ---Fields in module 'website_sale_comparison'---
3
+ ---XML records in module 'website_sale_comparison'---
4
+ NEW ir.ui.view: website_sale_comparison.snippet_options
5
+ DEL ir.ui.view: website_sale_comparison.add_to_compare_button
6
+ DEL ir.ui.view: website_sale_comparison.product_add_to_compare
7
+ DEL ir.ui.view: website_sale_comparison.recommended_product
8
+ # Nothing to do.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade-scripts
3
- Version: 16.0.1.0.3.172
3
+ Version: 16.0.1.0.3.175
4
4
  Summary: Module that contains all the migrations analysis and scripts for migrate Odoo SA modules.
5
5
  Home-page: https://github.com/OCA/OpenUpgrade
6
6
  Author: Odoo Community Association (OCA)
@@ -613,10 +613,14 @@ odoo/addons/openupgrade_scripts/scripts/website_profile/16.0.1.0/noupdate_change
613
613
  odoo/addons/openupgrade_scripts/scripts/website_profile/16.0.1.0/post-migration.py,sha256=kRk_c_9HO7NOsHn8xTe_Zhu5a8DACnQRe8zb0A91x0k,555
614
614
  odoo/addons/openupgrade_scripts/scripts/website_profile/16.0.1.0/upgrade_analysis.txt,sha256=78N1ltWRqtFW1R8jR3V-jFXYuMiYRRHy4Uj2gq5lLcI,300
615
615
  odoo/addons/openupgrade_scripts/scripts/website_profile/16.0.1.0/upgrade_analysis_work.txt,sha256=WBihsSNr9k35K_7xoXbiHmQ3Bq_-Ji1aMfCw9K0n8NU,343
616
- odoo/addons/openupgrade_scripts/scripts/website_sale/16.0.1.1/noupdate_changes.xml,sha256=WjsihhVmL8gBt0zO5Y9iLbJhJ59IaQpPtkoSd8yWv0s,3896
616
+ odoo/addons/openupgrade_scripts/scripts/website_sale/16.0.1.1/noupdate_changes.xml,sha256=nfdIYF9rDxL7mbrU-1rQSinpSkxqmAi6WfmDwGWYfK0,3955
617
+ odoo/addons/openupgrade_scripts/scripts/website_sale/16.0.1.1/post-migration.py,sha256=-c9-4Wzgb_HWaPCT9QdVxjinRtVyscYf4Cj1PFuIcUc,756
618
+ odoo/addons/openupgrade_scripts/scripts/website_sale/16.0.1.1/pre-migration.py,sha256=sLscIuOFhp9wC5zWd40ePlsAUZZRqaNazFByhFMVHGc,1730
617
619
  odoo/addons/openupgrade_scripts/scripts/website_sale/16.0.1.1/upgrade_analysis.txt,sha256=PTjOf2WScHZfJVbgKmBDBWTFRkHclbfqkdS86Cvo7Vk,7782
620
+ odoo/addons/openupgrade_scripts/scripts/website_sale/16.0.1.1/upgrade_analysis_work.txt,sha256=81PNj202WO69bZXkSakWjiBMohG9u0D_7WsDr8aRXTk,9337
618
621
  odoo/addons/openupgrade_scripts/scripts/website_sale_autocomplete/16.0.1.0/upgrade_analysis.txt,sha256=WoSUlwN4UAdoZfohAjNdArdpNBRDyydDCQpK53NIZMg,436
619
622
  odoo/addons/openupgrade_scripts/scripts/website_sale_comparison/16.0.1.0/upgrade_analysis.txt,sha256=GbaGMWkY1ZxaQ0L1nUb_LzOFrMALn8fYYBLgMQ_Zl7Y,330
623
+ odoo/addons/openupgrade_scripts/scripts/website_sale_comparison/16.0.1.0/upgrade_analysis_work.txt,sha256=OfXTn6rnFuOlRjIGn4a1W3pTDF-d23eWYAA599Da-bo,410
620
624
  odoo/addons/openupgrade_scripts/scripts/website_sale_delivery/16.0.1.0/upgrade_analysis.txt,sha256=yYL2gIgN2tVOGbUJmQmy2whpvKNggTmij4ZLDEVozvg,186
621
625
  odoo/addons/openupgrade_scripts/scripts/website_sale_delivery_mondialrelay/16.0.0.1/upgrade_analysis.txt,sha256=BCxNxJ48VdYt5bV337TfePuo0MN-uhhRUqYwC-bPp0c,433
622
626
  odoo/addons/openupgrade_scripts/scripts/website_sale_digital/16.0.0.1/upgrade_analysis.txt,sha256=ow2g8lrO5k51Ec1gCFTG5_8D9pnfJAzxeVyk5au2qiA,183
@@ -639,7 +643,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
639
643
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
640
644
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
641
645
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=IOWtZdzr_jN_Dja8HYIfzIxrO8NE5pFgazKJtPsLKw0,12678
642
- odoo_addon_openupgrade_scripts-16.0.1.0.3.172.dist-info/METADATA,sha256=if7sTfvtKY732k7mLy8Z9ThGlnZVmTR2QFeSkFq-mMY,3810
643
- odoo_addon_openupgrade_scripts-16.0.1.0.3.172.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
644
- odoo_addon_openupgrade_scripts-16.0.1.0.3.172.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
645
- odoo_addon_openupgrade_scripts-16.0.1.0.3.172.dist-info/RECORD,,
646
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.175.dist-info/METADATA,sha256=L9CdOdUqFAgo9tX-3IKJ5dtWtY6F8q8XgrEdVQbnkzA,3810
647
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.175.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
648
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.175.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
649
+ odoo_addon_openupgrade_scripts-16.0.1.0.3.175.dist-info/RECORD,,