odoo-addon-openupgrade-scripts 17.0.1.0.1.432__py3-none-any.whl → 17.0.1.0.1.434__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/account/17.0.1.2/post-migration.py +1 -11
- odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/pre-migration.py +18 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.432.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.432.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info}/RECORD +6 -6
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.432.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.432.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
|
2
2
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
3
|
|
4
|
-
from openupgradelib import openupgrade
|
4
|
+
from openupgradelib import openupgrade
|
5
5
|
|
6
6
|
from odoo import models
|
7
7
|
|
@@ -558,15 +558,6 @@ def _rename_coa_elements_xmlids(env):
|
|
558
558
|
)
|
559
559
|
|
560
560
|
|
561
|
-
def _convert_account_tax_description(env):
|
562
|
-
# Deliberately call migrate_translations_to_jsonb instead of
|
563
|
-
# convert_column_translatable to support the case you have translate=True on
|
564
|
-
# the field in v16 (l10n_multilang compatibility).
|
565
|
-
openupgrade_160.migrate_translations_to_jsonb(
|
566
|
-
env, [("account.tax", "invoice_label")]
|
567
|
-
)
|
568
|
-
|
569
|
-
|
570
561
|
@openupgrade.migrate()
|
571
562
|
def migrate(env, version):
|
572
563
|
_account_payment_term_migration(env)
|
@@ -592,4 +583,3 @@ def migrate(env, version):
|
|
592
583
|
_map_chart_template_id_to_chart_template(env, "res_company")
|
593
584
|
_map_chart_template_id_to_chart_template(env, "account_report")
|
594
585
|
_rename_coa_elements_xmlids(env)
|
595
|
-
_convert_account_tax_description(env)
|
@@ -1,8 +1,24 @@
|
|
1
|
-
# Copyright 2024 Tecnativa - Víctor Martínez
|
1
|
+
# Copyright 2024-2025 Tecnativa - Víctor Martínez
|
2
2
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
3
|
from openupgradelib import openupgrade
|
4
4
|
|
5
5
|
|
6
|
+
def _maintenance_plan(env):
|
7
|
+
"""Rename the fields if the maintenance_plan module was installed."""
|
8
|
+
if openupgrade.column_exists(env.cr, "maintenance_request", "note"):
|
9
|
+
openupgrade.rename_fields(
|
10
|
+
env,
|
11
|
+
[
|
12
|
+
(
|
13
|
+
"maintenance.request",
|
14
|
+
"maintenance_request",
|
15
|
+
"note",
|
16
|
+
"instruction_text",
|
17
|
+
),
|
18
|
+
],
|
19
|
+
)
|
20
|
+
|
21
|
+
|
6
22
|
def _maintenance_request_company_id(env):
|
7
23
|
"""We set the company_id value for requests that do not have it.
|
8
24
|
We get the value of what will be deductively most appropriate (equipment, team or
|
@@ -34,3 +50,4 @@ def _maintenance_request_company_id(env):
|
|
34
50
|
@openupgrade.migrate()
|
35
51
|
def migrate(env, version):
|
36
52
|
_maintenance_request_company_id(env)
|
53
|
+
_maintenance_plan(env)
|
@@ -8,7 +8,7 @@ odoo/addons/openupgrade_scripts/readme/INSTALL.md,sha256=NDKVZRv0J8BTqcSTD7JwUXL
|
|
8
8
|
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/end-migration.py,sha256=G6OWCYdYG6u0MqwPDR7oOQKZr1MQshiO_90VvZYiXHA,1714
|
9
9
|
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/noupdate_changes.xml,sha256=8s62iD--I0CEeBE1C3mAsS9LMCg7Uw3YNwK8WmSfAZw,8531
|
10
10
|
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/noupdate_changes_work.xml,sha256=eIPxEPrqPOdaH4U2i0ttgP3xB_vLh_GEXqPPZx3lKVU,8751
|
11
|
-
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/post-migration.py,sha256=
|
11
|
+
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/post-migration.py,sha256=lER9nl_RNy-FPlSS0ST96Vk_3tAlBWC5NwWyIWkiO2w,21160
|
12
12
|
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py,sha256=2SOSantpIKDxtOx0bvdmj9Nji_MWUuXQyLc0LltB2-8,8517
|
13
13
|
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/upgrade_analysis.txt,sha256=hKMBi1_qDpYpzCmdjzh4E7OMIrtLN8ha97bqqK0FTvo,39700
|
14
14
|
odoo/addons/openupgrade_scripts/scripts/account/17.0.1.2/upgrade_analysis_work.txt,sha256=JYdR14ndafoDGFoCkaIv5E94MqwZ46nmG-IEtHg7YjY,44220
|
@@ -437,7 +437,7 @@ odoo/addons/openupgrade_scripts/scripts/mail_group/17.0.1.1/upgrade_analysis.txt
|
|
437
437
|
odoo/addons/openupgrade_scripts/scripts/mail_plugin/17.0.1.0/upgrade_analysis.txt,sha256=h6XIVfM3wiiw-zTZJGStrvhE2Yl99HnLUU2aMhwzQlQ,154
|
438
438
|
odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/noupdate_changes.xml,sha256=uygqhU4b0ic9c3pZgCJNm7lo7i7Ak1rpgAaWDzzN3ec,324
|
439
439
|
odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/post-migration.py,sha256=hL257AUHhj3iy0r2Oe1ZhNehc8PzHE7W4-skFBw9jgs,1392
|
440
|
-
odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/pre-migration.py,sha256=
|
440
|
+
odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/pre-migration.py,sha256=6kAkHUFc521UBejWAzWVIdZXDSrqDn_fjXhkrYdIy2U,1743
|
441
441
|
odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/upgrade_analysis.txt,sha256=fh-mn82bXY9wHefpPp-eTr1mNghugC38UbRRHj9xZuc,2566
|
442
442
|
odoo/addons/openupgrade_scripts/scripts/maintenance/17.0.1.0/upgrade_analysis_work.txt,sha256=b_AmFGalsaPfAjCrXiX3uX3iMmPpdTpJ5FI-RGWFFM0,2760
|
443
443
|
odoo/addons/openupgrade_scripts/scripts/mass_mailing/17.0.2.7/noupdate_changes.xml,sha256=RKyrNMRIRgC-aVyUGSRPCIHhGgJPSoCelpxc0vqk1Qc,1285
|
@@ -808,7 +808,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
808
808
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
809
809
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
810
810
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
811
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
812
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
813
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
814
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
811
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info/METADATA,sha256=LtR4seNzruap2mDmKy6SDQ5mmP32VusScdhoAl0VCww,3823
|
812
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
813
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
814
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.434.dist-info/RECORD,,
|
File without changes
|