odoo-addon-openupgrade-scripts 15.0.1.0.0.512__py3-none-any.whl → 15.0.1.0.0.514__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/apriori.py +1 -0
- odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/pre-migration.py +20 -0
- odoo/addons/openupgrade_scripts/scripts/web/15.0.1.0/post-migration.py +33 -0
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.512.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info}/METADATA +2 -2
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.512.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info}/RECORD +7 -6
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.512.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info}/WHEEL +1 -1
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.512.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info}/top_level.txt +0 -0
@@ -79,6 +79,7 @@ merged_modules = {
|
|
79
79
|
"mrp_subcontracting_resupply_link": "mrp_subcontracting_purchase",
|
80
80
|
# OCA/pos
|
81
81
|
"pos_invoicing": "point_of_sale",
|
82
|
+
"pos_order_line_note": "point_of_sale",
|
82
83
|
"pos_order_mgmt": "point_of_sale",
|
83
84
|
"pos_order_return": "point_of_sale",
|
84
85
|
"pos_sale_order_load": "pos_sale",
|
@@ -28,9 +28,29 @@ def merge_pos_order_return_module(env):
|
|
28
28
|
)
|
29
29
|
|
30
30
|
|
31
|
+
def merge_pos_order_line_module(env):
|
32
|
+
"""
|
33
|
+
The OCA/pos_order_line_note module (V12) is now merged into point_of_sale. We can hook into
|
34
|
+
the new core functionality just renaming the proper field.
|
35
|
+
"""
|
36
|
+
if openupgrade.column_exists(env.cr, "pos_order_line", "note"):
|
37
|
+
openupgrade.rename_fields(
|
38
|
+
env,
|
39
|
+
[
|
40
|
+
(
|
41
|
+
"pos.order.line",
|
42
|
+
"pos_order_line",
|
43
|
+
"note",
|
44
|
+
"customer_note",
|
45
|
+
),
|
46
|
+
],
|
47
|
+
)
|
48
|
+
|
49
|
+
|
31
50
|
@openupgrade.migrate()
|
32
51
|
def migrate(env, version):
|
33
52
|
merge_pos_order_return_module(env)
|
53
|
+
merge_pos_order_line_module(env)
|
34
54
|
openupgrade.rename_fields(
|
35
55
|
env,
|
36
56
|
[
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Copyright 2023-2024 Tecnativa - Víctor Martínez
|
2
|
+
from openupgradelib import openupgrade
|
3
|
+
|
4
|
+
|
5
|
+
@openupgrade.migrate()
|
6
|
+
def migrate(env, version):
|
7
|
+
"""It is important to set the appropriate report_footer and company_details values.
|
8
|
+
The report_footer field already existed before, but it only represented the 'extra'
|
9
|
+
text that was added after the company data (https://github.com/odoo/odoo/blob/cc0060e889603eb2e47fa44a8a22a70d7d784185/addons/web/views/report_templates.xml#L367).
|
10
|
+
Now in v15 this data https://github.com/odoo/odoo/blob/3a28e5b0adbb36bdb1155a6854cdfbe4e7f9b187/addons/web/views/report_templates.xml#L338
|
11
|
+
is not shown unless it is defined; therefore, we must apply the corresponding
|
12
|
+
default that would be defined from the base.document.layout wizard and then add the
|
13
|
+
old report_footer data (if it was defined).
|
14
|
+
There is now a company_details field that does not have a default value, so it will
|
15
|
+
be created empty.
|
16
|
+
It is important to define the corresponding value that would be defined from the
|
17
|
+
base.document.layout wizard because in the report now only the content of that
|
18
|
+
field is shown, while in v14 it was not necessary since the address was shown
|
19
|
+
according to the partner_id field.
|
20
|
+
v14 https://github.com/odoo/odoo/blob/cc0060e889603eb2e47fa44a8a22a70d7d784185/addons/web/views/report_templates.xml#L343
|
21
|
+
vs v15 https://github.com/odoo/odoo/blob/3a28e5b0adbb36bdb1155a6854cdfbe4e7f9b187/addons/web/views/report_templates.xml#L319
|
22
|
+
""" # noqa: B950
|
23
|
+
for company in env["res.company"].search([]):
|
24
|
+
wizard = env["base.document.layout"].with_company(company).create({})
|
25
|
+
report_footer = wizard.report_footer
|
26
|
+
if company.report_footer:
|
27
|
+
report_footer += company.report_footer
|
28
|
+
company.write(
|
29
|
+
{
|
30
|
+
"report_footer": report_footer,
|
31
|
+
"company_details": wizard.company_details,
|
32
|
+
}
|
33
|
+
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-openupgrade_scripts
|
3
|
-
Version: 15.0.1.0.0.
|
3
|
+
Version: 15.0.1.0.0.514
|
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)
|
@@ -11,7 +11,7 @@ Classifier: Framework :: Odoo
|
|
11
11
|
Classifier: Framework :: Odoo :: 15.0
|
12
12
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
13
13
|
Requires-Python: >=3.8
|
14
|
-
Requires-Dist: odoo
|
14
|
+
Requires-Dist: odoo<15.1dev,>=15.0a
|
15
15
|
|
16
16
|
===================
|
17
17
|
Openupgrade Scripts
|
@@ -1,7 +1,7 @@
|
|
1
1
|
odoo/addons/openupgrade_scripts/README.rst,sha256=TFoeSTQ1dga9OiOaWPPw6VjE4FXLq6kAMfvg3HDTW3I,3185
|
2
2
|
odoo/addons/openupgrade_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
odoo/addons/openupgrade_scripts/__manifest__.py,sha256=Bg1odtEI40Tp3WWqRv_MMkuERgls81FORzrUAzezsxg,553
|
4
|
-
odoo/addons/openupgrade_scripts/apriori.py,sha256=
|
4
|
+
odoo/addons/openupgrade_scripts/apriori.py,sha256=l4Gni_a8u2hlcDg1XVHpa9ivGjLE1gNwoFmwaj6Cu5Y,4718
|
5
5
|
odoo/addons/openupgrade_scripts/readme/CONFIGURE.rst,sha256=cy1swpDkuqi9-6q8L1M1QD058QyfBvAE2PN_mmdxvwI,255
|
6
6
|
odoo/addons/openupgrade_scripts/readme/DESCRIPTION.rst,sha256=elLk0eys-xy60z5KMgqlCKySJWT_k2gTUoOiArMJkWc,86
|
7
7
|
odoo/addons/openupgrade_scripts/readme/INSTALL.rst,sha256=tXbOmw3QIhO1KLIziMpXzuuY0tOhI8IGT2ktCArwfGM,115
|
@@ -489,7 +489,7 @@ odoo/addons/openupgrade_scripts/scripts/payment_transfer/15.0.2.0/upgrade_analys
|
|
489
489
|
odoo/addons/openupgrade_scripts/scripts/payment_transfer/15.0.2.0/upgrade_analysis_work.txt,sha256=vrUWFcV-jmpcGiAXnbxwYySSS5SgXF7X4m0hELy38BA,1026
|
490
490
|
odoo/addons/openupgrade_scripts/scripts/phone_validation/15.0.2.1/upgrade_analysis.txt,sha256=YbxCg-4Tfc9R44jlmyuTQEFtFNtgl1l7lCaHDxDbq8Y,180
|
491
491
|
odoo/addons/openupgrade_scripts/scripts/phone_validation/15.0.2.1/upgrade_analysis_work.txt,sha256=7KehuhfF_NlsU7UAHsa8DLKepZDfvlqzQ8LNeaqrKQA,301
|
492
|
-
odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/pre-migration.py,sha256=
|
492
|
+
odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/pre-migration.py,sha256=ZPXznTC4Mr6CLUAe6VEd9bWHrIlcnDFbZopnFeF7S6g,2207
|
493
493
|
odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/upgrade_analysis.txt,sha256=JW0fHqC0rJ55cAKKyh-QCguOXhzrc-Bl1M_qcIGTs1k,7323
|
494
494
|
odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/upgrade_analysis_work.txt,sha256=3hVzZrTJ6QgWSWUYMUzxYQhliXpwDPExI7HEY2wpKvI,8130
|
495
495
|
odoo/addons/openupgrade_scripts/scripts/portal/15.0.1.0/noupdate_changes.xml,sha256=WAyp4JiMPXFNkxlsbf3XLEQRX-UWdyulTWdbDnKV5Sw,6944
|
@@ -685,6 +685,7 @@ odoo/addons/openupgrade_scripts/scripts/uom/15.0.1.0/upgrade_analysis_work.txt,s
|
|
685
685
|
odoo/addons/openupgrade_scripts/scripts/utm/15.0.1.1/pre-migration.py,sha256=EDXUvH31uyfrEt_afCGNCVdjHC-pjuSAX07_ck1bHU4,263
|
686
686
|
odoo/addons/openupgrade_scripts/scripts/utm/15.0.1.1/upgrade_analysis.txt,sha256=ax5J4E3zUhHJBrsd4W6Gk32N7biptVHHU8pawBQTuc8,303
|
687
687
|
odoo/addons/openupgrade_scripts/scripts/utm/15.0.1.1/upgrade_analysis_work.txt,sha256=5ssz3aNKL19_M8jF098n-QmhvoVzFniteawHQT1Gbog,384
|
688
|
+
odoo/addons/openupgrade_scripts/scripts/web/15.0.1.0/post-migration.py,sha256=H-J08Sh80atb1j64c0WWJY4i_ICJpveg3SNHMnMS7F0,1950
|
688
689
|
odoo/addons/openupgrade_scripts/scripts/web/15.0.1.0/pre-migration.py,sha256=ksJZSCc6UNDb2JCXFm8NuJTYzCocjhIyKLDi8PQ3Tgc,457
|
689
690
|
odoo/addons/openupgrade_scripts/scripts/web/15.0.1.0/upgrade_analysis.txt,sha256=H2zVgDmPCz9pMmJeaOCZlVGinO_5I-pQ4s8CKxSCWiU,1630
|
690
691
|
odoo/addons/openupgrade_scripts/scripts/web/15.0.1.0/upgrade_analysis_work.txt,sha256=ZTAu7NXIKdRgXxpDolLrjaDg8rUpqBX2NVJoRH9E_ps,1708
|
@@ -807,7 +808,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/15.0.1.0/upgrade_analysi
|
|
807
808
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
808
809
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
809
810
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=Q6Orf6ynZuFFVbDWUruBEsSY4uaFaTiVYvLYU1tcCnc,12678
|
810
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
811
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
812
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
813
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
811
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info/METADATA,sha256=aekPPoMFrjxVAjo2HyjApWFWPvKm0OvtorU0nTKkSD8,3758
|
812
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
813
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
814
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.514.dist-info/RECORD,,
|