odoo-addon-openupgrade-scripts 17.0.1.0.1.379__py3-none-any.whl → 17.0.1.0.1.381__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/crm_iap_mine/17.0.1.2/upgrade_analysis_work.txt +7 -0
- 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.381.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.381.dist-info}/RECORD +7 -6
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.379.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.381.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.381.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
|
|
@@ -102,6 +102,7 @@ odoo/addons/openupgrade_scripts/scripts/crm/17.0.1.8/upgrade_analysis_work.txt,s
|
|
102
102
|
odoo/addons/openupgrade_scripts/scripts/crm_iap_enrich/17.0.1.1/noupdate_changes.xml,sha256=-izWXk6Bj_LdL2MvG6TYJSV4HWy4PuI8vOLeK4ET9Q0,645
|
103
103
|
odoo/addons/openupgrade_scripts/scripts/crm_iap_enrich/17.0.1.1/upgrade_analysis.txt,sha256=n6quRXxaa0Eja2cD9MiahP67CbyHHJ-iD6YWg-iP6EI,165
|
104
104
|
odoo/addons/openupgrade_scripts/scripts/crm_iap_mine/17.0.1.2/upgrade_analysis.txt,sha256=zy8cIWN2w2yeL75ibIGR8SJxoW-AhVREU_OZ-keAvUQ,225
|
105
|
+
odoo/addons/openupgrade_scripts/scripts/crm_iap_mine/17.0.1.2/upgrade_analysis_work.txt,sha256=0bZdsVKBEZHsm_EeQRvyNU90XChm9c26pAiiOj0JjL0,242
|
105
106
|
odoo/addons/openupgrade_scripts/scripts/crm_livechat/17.0.1.0/upgrade_analysis.txt,sha256=R6N3_32MoL3cP-Ip_SxLqnn9u74__Jz8QrvfrCdBJmw,159
|
106
107
|
odoo/addons/openupgrade_scripts/scripts/crm_sms/17.0.1.1/upgrade_analysis.txt,sha256=f-qV7_a33-EjMmoJ4o9c-GO8xBW9uajH7lKGW5brStw,169
|
107
108
|
odoo/addons/openupgrade_scripts/scripts/crm_sms/17.0.1.1/upgrade_analysis_work.txt,sha256=Ow5a5Lyg4qXbb4MbklCub9zPTRfS9pFb709QbrlLE6M,185
|
@@ -744,9 +745,9 @@ odoo/addons/openupgrade_scripts/scripts/website_profile/17.0.1.0/noupdate_change
|
|
744
745
|
odoo/addons/openupgrade_scripts/scripts/website_profile/17.0.1.0/post-migration.py,sha256=yNR8k3Oo4dWCYqgLP3j5Vr3VQSNenTyeLMMeZndl_Vg,410
|
745
746
|
odoo/addons/openupgrade_scripts/scripts/website_profile/17.0.1.0/upgrade_analysis.txt,sha256=sw2P2EUshSepfxC15Zsapn6tgFQYkqysPzQ0vDr2bzo,334
|
746
747
|
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=
|
748
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/post-migration.py,sha256=lS6ZFnh4Qq2U7lPdHf-Z9vVWrJNm9YmS1IsHF0cYMnw,1720
|
748
749
|
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=
|
750
|
+
odoo/addons/openupgrade_scripts/scripts/website_sale/17.0.1.1/upgrade_analysis_work.txt,sha256=ctp8bE3zqC5spTNqBOKZXNmPPuGsguPtSaOWL-Isf4o,10751
|
750
751
|
odoo/addons/openupgrade_scripts/scripts/website_sale_autocomplete/17.0.1.0/upgrade_analysis.txt,sha256=YswdVijMPe2DoMTSlJqSbdFd1ZcTK4PfRvXvm1cd3XM,198
|
751
752
|
odoo/addons/openupgrade_scripts/scripts/website_sale_comparison/17.0.1.0/upgrade_analysis.txt,sha256=hLGynBKTJICGodg9l88vtm6YgbNQwOZXBdZ4y4pIT9Q,519
|
752
753
|
odoo/addons/openupgrade_scripts/scripts/website_sale_comparison/17.0.1.0/upgrade_analysis_work.txt,sha256=kDnn7cQWa3bk3A1g8SkOJ8eBaLNVasAo2v-DncDhFbk,565
|
@@ -778,7 +779,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
778
779
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
779
780
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
780
781
|
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.
|
782
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.381.dist-info/METADATA,sha256=CRh3lRpLEEcDH3mpk_jtdKbcdhc-M_bGg0QrESwBKEA,3786
|
783
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.381.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
784
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.381.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
785
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.381.dist-info/RECORD,,
|
File without changes
|