odoo-addon-openupgrade-scripts 18.0.1.0.0.222__py3-none-any.whl → 18.0.1.0.0.224__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/scripts/website_sale/18.0.1.1/noupdate_changes_work.xml +64 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/post-migration.py +31 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/pre-migration.py +17 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/upgrade_analysis_work.txt +86 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.222.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.222.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info}/RECORD +8 -4
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.222.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.222.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
<?xml version='1.0' encoding='utf-8'?>
|
2
|
+
<odoo>
|
3
|
+
<!-- New command syntax, but it's the same
|
4
|
+
<record id="base.group_portal" model="res.groups">
|
5
|
+
<field name="implied_ids" eval="[ Command.link(ref('account.group_delivery_invoice_address')), ]"/>
|
6
|
+
</record>
|
7
|
+
<record id="base.group_public" model="res.groups">
|
8
|
+
<field name="implied_ids" eval="[ Command.link(ref('account.group_delivery_invoice_address')), ]"/>
|
9
|
+
</record>
|
10
|
+
<record id="base.group_user" model="res.groups">
|
11
|
+
<field name="implied_ids" eval="[ Command.link(ref('account.group_delivery_invoice_address')), ]"/>
|
12
|
+
</record>
|
13
|
+
-->
|
14
|
+
<!-- We shouldn't rewrite possible modifications done by the users
|
15
|
+
<record id="new_ribbon" model="product.ribbon">
|
16
|
+
<field name="bg_color">#0275d8</field>
|
17
|
+
<field name="text_color">#FFFFFF</field>
|
18
|
+
<field name="name">New!</field>
|
19
|
+
<field name="position">left</field>
|
20
|
+
</record>
|
21
|
+
<record id="out_of_stock_ribbon" model="product.ribbon">
|
22
|
+
<field name="bg_color">#ffc107</field>
|
23
|
+
<field name="text_color">#FFFFFF</field>
|
24
|
+
<field name="name">Out of stock</field>
|
25
|
+
<field name="position">left</field>
|
26
|
+
</record>
|
27
|
+
-->
|
28
|
+
<record id="product_pricelist_comp_rule" model="ir.rule">
|
29
|
+
<!-- Just an extra space, but let's do it -->
|
30
|
+
<field name="domain_force">['|', ('company_id', 'in', [False, website.company_id.id]), ('company_id', 'in', company_ids)]</field>
|
31
|
+
</record>
|
32
|
+
<record id="product_pricelist_item_comp_rule" model="ir.rule">
|
33
|
+
<!-- Just an extra space, but let's do it -->
|
34
|
+
<field name="domain_force">['|', ('company_id', 'in', [False, website.company_id.id]), ('company_id', 'in', company_ids)]</field>
|
35
|
+
</record>
|
36
|
+
<record id="product_template_public" model="ir.rule">
|
37
|
+
<!-- Just a replacing of " by ', but let's do it -->
|
38
|
+
<field name="domain_force">[('website_published', '=', True), ('sale_ok', '=', True)]</field>
|
39
|
+
<!-- New command syntax, but it's the same
|
40
|
+
<field name="groups" eval="[ Command.link(ref('base.group_public')), Command.link(ref('base.group_portal')), ]"/>
|
41
|
+
-->
|
42
|
+
</record>
|
43
|
+
<!-- We shouldn't rewrite possible modifications done by the users
|
44
|
+
<record id="sale_ribbon" model="product.ribbon">
|
45
|
+
<field name="bg_color">#0CA725</field>
|
46
|
+
<field name="text_color">#FFFFFF</field>
|
47
|
+
<field name="name">Sale</field>
|
48
|
+
<field name="position">left</field>
|
49
|
+
</record>
|
50
|
+
-->
|
51
|
+
<!-- New command syntax, but it's the same
|
52
|
+
<record id="sales_team.group_sale_manager" model="res.groups">
|
53
|
+
<field name="implied_ids" eval="[ Command.link(ref('website.group_website_restricted_editor')), ]"/>
|
54
|
+
</record>
|
55
|
+
-->
|
56
|
+
<!-- We shouldn't rewrite possible modifications done by the users
|
57
|
+
<record id="sold_out_ribbon" model="product.ribbon">
|
58
|
+
<field name="bg_color">#d9534f</field>
|
59
|
+
<field name="text_color">#FFFFFF</field>
|
60
|
+
<field name="name">Sold out</field>
|
61
|
+
<field name="position">left</field>
|
62
|
+
</record>
|
63
|
+
-->
|
64
|
+
</odoo>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Copyright 2025 Tecnativa - Pedro M. Baeza
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
3
|
+
|
4
|
+
import json
|
5
|
+
|
6
|
+
from openupgradelib import openupgrade
|
7
|
+
|
8
|
+
from odoo.tools import html2plaintext
|
9
|
+
|
10
|
+
|
11
|
+
def _convert_product_ribbon_html_to_name(env):
|
12
|
+
env.cr.execute("SELECT id, html FROM product_ribbon")
|
13
|
+
for row in env.cr.fetchall():
|
14
|
+
record_id, translations = row
|
15
|
+
for lang in translations:
|
16
|
+
translations[lang] = html2plaintext(translations[lang])
|
17
|
+
query = "UPDATE product_ribbon SET name = %s::jsonb WHERE id = %s"
|
18
|
+
env.cr.execute(query, (json.dumps(translations), record_id))
|
19
|
+
|
20
|
+
|
21
|
+
@openupgrade.migrate()
|
22
|
+
def migrate(env, version):
|
23
|
+
_convert_product_ribbon_html_to_name(env)
|
24
|
+
openupgrade.logged_query(
|
25
|
+
env.cr,
|
26
|
+
"""
|
27
|
+
UPDATE product_ribbon SET position='right'
|
28
|
+
WHERE html_class LIKE '%o_ribbon_right%'
|
29
|
+
""",
|
30
|
+
)
|
31
|
+
openupgrade.load_data(env, "website_sale", "18.0.1.1/noupdate_changes_work.xml")
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Copyright 2025 Tecnativa - Pedro M. Baeza
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
3
|
+
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
|
7
|
+
@openupgrade.migrate()
|
8
|
+
def migrate(env, version):
|
9
|
+
openupgrade.rename_fields(
|
10
|
+
env, [("product.product", "product_product", "ribbon_id", "variant_ribbon_id")]
|
11
|
+
)
|
12
|
+
openupgrade.logged_query(
|
13
|
+
env.cr, "UPDATE product_ribbon SET bg_color='' WHERE bg_color IS NULL"
|
14
|
+
)
|
15
|
+
openupgrade.logged_query(
|
16
|
+
env.cr, "UPDATE product_ribbon SET text_color='' WHERE text_color IS NULL"
|
17
|
+
)
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---Models in module 'website_sale'---
|
2
|
+
---Fields in module 'website_sale'---
|
3
|
+
website_sale / product.product / ribbon_id (many2one) : DEL relation: product.ribbon
|
4
|
+
website_sale / product.product / variant_ribbon_id (many2one) : NEW relation: product.ribbon
|
5
|
+
# DONE: pre-migration: Field renamed.
|
6
|
+
|
7
|
+
website_sale / product.public.category / website_footer (html) : NEW translate
|
8
|
+
# NOTHING TO DO: New feature for inserting website blocks at the footer of the category.
|
9
|
+
|
10
|
+
website_sale / product.ribbon / bg_color (char) : now required
|
11
|
+
website_sale / product.ribbon / text_color (char) : now required
|
12
|
+
# DONE: pre-migration: Set to empty string when no value, as observed from runbot test.
|
13
|
+
|
14
|
+
website_sale / product.ribbon / html (html) : DEL required
|
15
|
+
website_sale / product.ribbon / name (char) : NEW required, translate
|
16
|
+
# DONE: post-migration: Plain HTML from html field to text.
|
17
|
+
|
18
|
+
website_sale / product.ribbon / html_class (char) : DEL required
|
19
|
+
website_sale / product.ribbon / position (selection) : NEW required, selection_keys: ['left', 'right'], hasdefault: default
|
20
|
+
# DONE: post-migration: Deduce position right from HTML class for changing the default value.
|
21
|
+
|
22
|
+
website_sale / sale.order / access_point_address (json) : DEL
|
23
|
+
# NOTHING TO DO: Redundant information.
|
24
|
+
|
25
|
+
website_sale / sale.order.line / linked_line_id (many2one) : module is now 'sale' ('website_sale')
|
26
|
+
# NOTHING TO DO: The field is still there.
|
27
|
+
|
28
|
+
website_sale / sale.order.line / option_line_ids (one2many) : DEL relation: sale.order.line
|
29
|
+
# NOTHING TO DO: The inverse field is still there (linked_line_id). It's just the o2m has been removed, but it can be redefined and used in any module that needs it.
|
30
|
+
|
31
|
+
website_sale / website / add_to_cart_action (selection): selection_keys added: [force_dialog] (most likely nothing to do)
|
32
|
+
# NOTHING TO DO: New feature.
|
33
|
+
|
34
|
+
website_sale / website / ecommerce_access (selection) : NEW required, selection_keys: ['everyone', 'logged_in'], hasdefault: default
|
35
|
+
# NOTHING TO DO: New feature, but the default "everyone" preserves previous behavior.
|
36
|
+
|
37
|
+
website_sale / website / shop_gap (char) : NEW hasdefault: default
|
38
|
+
# NOTHING TO DO: New feature, but the default 16px is the same as previously.
|
39
|
+
|
40
|
+
website_sale_product_configurator / website / add_to_cart_action (False) : DEL selection_keys: ['force_dialog', 'go_to_cart', 'stay'], mode: modify
|
41
|
+
# NOTHING TO DO: Glitch in the upgrade analysis due to the merge of the module.
|
42
|
+
|
43
|
+
---XML records in module 'website_sale'---
|
44
|
+
NEW ir.actions.act_window: website_sale.product_ribbon_action
|
45
|
+
DEL ir.actions.server: website_sale.ir_actions_server_sale_cart_recovery_email
|
46
|
+
NEW ir.ui.menu: website_sale.menu_product_combos
|
47
|
+
NEW ir.ui.menu: website_sale.product_catalog_product_ribbons
|
48
|
+
NEW ir.ui.view: website_sale.accordion_more_information
|
49
|
+
NEW ir.ui.view: website_sale.address_row
|
50
|
+
NEW ir.ui.view: website_sale.billing_address_row
|
51
|
+
NEW ir.ui.view: website_sale.cart_combo_item_line
|
52
|
+
NEW ir.ui.view: website_sale.cart_product_price
|
53
|
+
NEW ir.ui.view: website_sale.delivery_address_row
|
54
|
+
NEW ir.ui.view: website_sale.delivery_form
|
55
|
+
NEW ir.ui.view: website_sale.delivery_method
|
56
|
+
NEW ir.ui.view: website_sale.product_accordion
|
57
|
+
NEW ir.ui.view: website_sale.product_product_view_form_normalized
|
58
|
+
NEW ir.ui.view: website_sale.product_product_view_form_normalized_website_sale
|
59
|
+
NEW ir.ui.view: website_sale.products_attributes_collapsible
|
60
|
+
NEW ir.ui.view: website_sale.products_carousel_16x9
|
61
|
+
NEW ir.ui.view: website_sale.products_carousel_21x9
|
62
|
+
NEW ir.ui.view: website_sale.products_carousel_4x3
|
63
|
+
NEW ir.ui.view: website_sale.products_carousel_4x5
|
64
|
+
NEW ir.ui.view: website_sale.products_categories_list_collapsible
|
65
|
+
NEW ir.ui.view: website_sale.s_dynamic_snippet_products_preview_data
|
66
|
+
NEW ir.ui.view: website_sale.s_mega_menu_big_icons_subtitles
|
67
|
+
NEW ir.ui.view: website_sale.s_mega_menu_cards
|
68
|
+
NEW ir.ui.view: website_sale.s_mega_menu_images_subtitles
|
69
|
+
NEW ir.ui.view: website_sale.s_mega_menu_little_icons
|
70
|
+
NEW ir.ui.view: website_sale.s_mega_menu_menu_image_menu
|
71
|
+
NEW ir.ui.view: website_sale.s_mega_menu_menus_logos
|
72
|
+
NEW ir.ui.view: website_sale.s_mega_menu_multi_menus
|
73
|
+
NEW ir.ui.view: website_sale.s_mega_menu_odoo_menu
|
74
|
+
NEW ir.ui.view: website_sale.s_mega_menu_thumbnails
|
75
|
+
DEL ir.ui.view: website_sale.cart_delivery
|
76
|
+
DEL ir.ui.view: website_sale.payment_delivery
|
77
|
+
DEL ir.ui.view: website_sale.payment_delivery_methods
|
78
|
+
DEL ir.ui.view: website_sale.product_product_view_form_add
|
79
|
+
DEL ir.ui.view: website_sale.products_fiscal_position
|
80
|
+
DEL ir.ui.view: website_sale.row_addresses
|
81
|
+
DEL ir.ui.view: website_sale_product_configurator.configure_optional_products
|
82
|
+
DEL ir.ui.view: website_sale_product_configurator.optional_product_items
|
83
|
+
DEL ir.ui.view: website_sale_product_configurator.optional_products_modal
|
84
|
+
DEL ir.ui.view: website_sale_product_configurator.product_quantity_config
|
85
|
+
NEW web_tour.tour: website_sale.test_01_admin_shop_tour
|
86
|
+
# NOTHING TO DO: New stuff or removed noupdate=0 stuff.
|
@@ -643,7 +643,11 @@ odoo/addons/openupgrade_scripts/scripts/website_profile/18.0.1.0/upgrade_analysi
|
|
643
643
|
odoo/addons/openupgrade_scripts/scripts/website_profile/18.0.1.0/upgrade_analysis_work.txt,sha256=gXU3BXP1PdCtrSQ501A8CzoB28Qi02Bw-kAhUtsyf-Q,184
|
644
644
|
odoo/addons/openupgrade_scripts/scripts/website_project/18.0.1.0/upgrade_analysis.txt,sha256=1Qbh3ljDvSBRMsm-psuIoz2T3Qm5E6ohJzHd3jj1AJY,872
|
645
645
|
odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/noupdate_changes.xml,sha256=qukbj42hSRKTQMbCI2-0MfVUN624uIBgPdOOd6QlgK8,2485
|
646
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/noupdate_changes_work.xml,sha256=Ft1vymybcW6yW7di67R4pyoxfk_Lqd4WzQhILsJqNBA,3024
|
647
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/post-migration.py,sha256=792AdFEy6eJOLHDFynoILc10XH2G-TYTfRVOZxJZkGM,986
|
648
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/pre-migration.py,sha256=dbh_fnxYzj3v-13-d-YKKD6xInUfASkWxU7EDu7FeTg,560
|
646
649
|
odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/upgrade_analysis.txt,sha256=npxT-i1nUqgLS-nMPT4aSwkxVTxqXqhVM-i9T553D1o,4219
|
650
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/18.0.1.1/upgrade_analysis_work.txt,sha256=XR5x17a4QYOCQ5P3Pdh0N16QkzSm8oyWb3cNUlVec0g,5179
|
647
651
|
odoo/addons/openupgrade_scripts/scripts/website_sale_autocomplete/18.0.1.0/upgrade_analysis.txt,sha256=YswdVijMPe2DoMTSlJqSbdFd1ZcTK4PfRvXvm1cd3XM,198
|
648
652
|
odoo/addons/openupgrade_scripts/scripts/website_sale_collect/18.0.1.0/upgrade_analysis.txt,sha256=UDxDSo0Be1Ti_xEiM9giSG0xu7TNqFiAF_RcCxJQSNw,2246
|
649
653
|
odoo/addons/openupgrade_scripts/scripts/website_sale_comparison/18.0.1.0/upgrade_analysis.txt,sha256=bTSciAg2bCbBcVYoostlp6AjqbFEez1xnVHLYZFdeM0,274
|
@@ -661,7 +665,7 @@ odoo/addons/openupgrade_scripts/scripts/website_slides_survey/18.0.1.0/upgrade_a
|
|
661
665
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
662
666
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
663
667
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=Jc0qAThlH5WnoSq6vPamjC8WyMkdo_9zkhDuU1qW1VI,12722
|
664
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
665
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
666
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
667
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
668
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info/METADATA,sha256=YdrU5Its9vCcYp7gtBhxv453zEMcvzCKeI7MCT3zXiE,3812
|
669
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
670
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
671
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.224.dist-info/RECORD,,
|
File without changes
|