odoo-addon-openupgrade-scripts 17.0.1.0.1.379__py3-none-any.whl → 17.0.1.0.1.380__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/17.0.1.1/post-migration.py +15 -0
- odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/upgrade_analysis_work.txt +3 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.379.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.379.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info}/RECORD +6 -6
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.379.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.379.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,23 @@
|
|
1
1
|
# Copyright 2025 Tecnativa - Pilar Vargas
|
2
|
+
# Copyright 2025 Tecnativa - Pedro M. Baeza
|
2
3
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
3
4
|
|
4
5
|
from openupgradelib import openupgrade
|
5
6
|
|
6
7
|
|
8
|
+
def _adjust_website_default_b2b_b2c(env):
|
9
|
+
"""Previously, B2B/B2C prices visibility was set in a global way through 2
|
10
|
+
accounting groups that were inherited to "Internal user" group. Now, these groups
|
11
|
+
have disappeared, and this can be configured at website level directly. We switch
|
12
|
+
from the default value "tax_excluded" if we detect the B2C group was put before.
|
13
|
+
This can be done because the groups haven't been yet removed in this phase.
|
14
|
+
"""
|
15
|
+
group_b2c = env.ref("account.group_show_line_subtotals_tax_included")
|
16
|
+
group_internal = env.ref("base.group_user")
|
17
|
+
if group_b2c in group_internal.implied_ids:
|
18
|
+
env["website"].search([]).show_line_subtotals_tax_selection = "tax_included"
|
19
|
+
|
20
|
+
|
7
21
|
@openupgrade.migrate()
|
8
22
|
def migrate(env, version):
|
9
23
|
# Set to False so as not to change the behaviour of the website with new things.
|
@@ -26,3 +40,4 @@ def migrate(env, version):
|
|
26
40
|
AND ir.product_downloadable
|
27
41
|
""",
|
28
42
|
)
|
43
|
+
_adjust_website_default_b2b_b2c(env)
|
@@ -14,10 +14,12 @@ website_sale / res.company / website_sale_onboarding_payment_provid
|
|
14
14
|
website_sale / sale.order / access_point_address (json) : NEW
|
15
15
|
website_sale / website / currency_id (many2one) : not related anymore
|
16
16
|
website_sale / website / currency_id (many2one) : now a function
|
17
|
-
website_sale / website / show_line_subtotals_tax_selection (selection): NEW required, selection_keys: ['tax_excluded', 'tax_included'], hasdefault: default
|
18
17
|
website_sale_delivery / sale.order / amount_delivery (float) : not stored anymore
|
19
18
|
# NOTHING TO DO
|
20
19
|
|
20
|
+
website_sale / website / show_line_subtotals_tax_selection (selection): NEW required, selection_keys: ['tax_excluded', 'tax_included'], hasdefault: default
|
21
|
+
# DONE: post-migration: Switch default value "tax_excluded" if previous group account.group_show_line_subtotals_tax_included was selected.
|
22
|
+
|
21
23
|
website_sale / product.tag / visible_on_ecommerce (boolean): NEW hasdefault: default
|
22
24
|
# DONE post-migration: Set to False so as not to change the behaviour of the website with new things.
|
23
25
|
|
@@ -744,9 +744,9 @@ odoo/addons/openupgrade_scripts/scripts/website_profile/17.0.1.0/noupdate_change
|
|
744
744
|
odoo/addons/openupgrade_scripts/scripts/website_profile/17.0.1.0/post-migration.py,sha256=yNR8k3Oo4dWCYqgLP3j5Vr3VQSNenTyeLMMeZndl_Vg,410
|
745
745
|
odoo/addons/openupgrade_scripts/scripts/website_profile/17.0.1.0/upgrade_analysis.txt,sha256=sw2P2EUshSepfxC15Zsapn6tgFQYkqysPzQ0vDr2bzo,334
|
746
746
|
odoo/addons/openupgrade_scripts/scripts/website_profile/17.0.1.0/upgrade_analysis_work.txt,sha256=xTs7P6CrwJvwN-xZ8J4ZXRsfddVoanOSmj_PgLrrgx8,350
|
747
|
-
odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/post-migration.py,sha256=
|
747
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/post-migration.py,sha256=lS6ZFnh4Qq2U7lPdHf-Z9vVWrJNm9YmS1IsHF0cYMnw,1720
|
748
748
|
odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/upgrade_analysis.txt,sha256=fokwf1QSBKhdVHFRGp7srJsY66C44RlRv6wbCRvvVJE,10384
|
749
|
-
odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/upgrade_analysis_work.txt,sha256=
|
749
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/upgrade_analysis_work.txt,sha256=ctp8bE3zqC5spTNqBOKZXNmPPuGsguPtSaOWL-Isf4o,10751
|
750
750
|
odoo/addons/openupgrade_scripts/scripts/website_sale_autocomplete/17.0.1.0/upgrade_analysis.txt,sha256=YswdVijMPe2DoMTSlJqSbdFd1ZcTK4PfRvXvm1cd3XM,198
|
751
751
|
odoo/addons/openupgrade_scripts/scripts/website_sale_comparison/17.0.1.0/upgrade_analysis.txt,sha256=hLGynBKTJICGodg9l88vtm6YgbNQwOZXBdZ4y4pIT9Q,519
|
752
752
|
odoo/addons/openupgrade_scripts/scripts/website_sale_comparison/17.0.1.0/upgrade_analysis_work.txt,sha256=kDnn7cQWa3bk3A1g8SkOJ8eBaLNVasAo2v-DncDhFbk,565
|
@@ -778,7 +778,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
778
778
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
779
779
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
780
780
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
781
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
782
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
783
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
784
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
781
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info/METADATA,sha256=tYSBCb_W7HeIZPigm-sOylMWfWI-UAK7bBI5vAu1JAo,3786
|
782
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
783
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
784
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.380.dist-info/RECORD,,
|
File without changes
|