odoo-addon-openupgrade-scripts 15.0.1.0.0.422__py3-none-any.whl → 15.0.1.0.0.426__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/point_of_sale/15.0.1.0.1/pre-migration.py +30 -0
- odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/upgrade_analysis_work.txt +140 -0
- odoo/addons/openupgrade_scripts/scripts/website/15.0.1.0/post-migration.py +45 -0
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.422.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.422.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info}/RECORD +7 -5
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.422.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-15.0.1.0.0.422.dist-info → odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# Copyright 2022 ForgeFlow S.L. <https://www.forgeflow.com>
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
from openupgradelib import openupgrade
|
4
|
+
|
5
|
+
|
6
|
+
@openupgrade.migrate()
|
7
|
+
def migrate(env, version):
|
8
|
+
openupgrade.rename_fields(
|
9
|
+
env,
|
10
|
+
[
|
11
|
+
(
|
12
|
+
"pos.config",
|
13
|
+
"pos_config",
|
14
|
+
"iface_customer_facing_display",
|
15
|
+
"iface_customer_facing_display_via_proxy",
|
16
|
+
),
|
17
|
+
(
|
18
|
+
"pos.payment.method",
|
19
|
+
"pos_payment_method",
|
20
|
+
"cash_journal_id",
|
21
|
+
"journal_id",
|
22
|
+
),
|
23
|
+
],
|
24
|
+
)
|
25
|
+
openupgrade.logged_query(
|
26
|
+
env.cr,
|
27
|
+
"""
|
28
|
+
ALTER TABLE pos_config ADD COLUMN IF NOT EXISTS warehouse_id INTEGER
|
29
|
+
""",
|
30
|
+
)
|
@@ -0,0 +1,140 @@
|
|
1
|
+
---Models in module 'point_of_sale'---
|
2
|
+
obsolete model closing.balance.confirm.wizard [transient]
|
3
|
+
new model pos.bill
|
4
|
+
new model pos.close.session.wizard [transient]
|
5
|
+
# NOTHING TO DO
|
6
|
+
|
7
|
+
---Fields in module 'point_of_sale'---
|
8
|
+
point_of_sale / account.bank.statement.cashbox / is_a_template (boolean) : DEL
|
9
|
+
point_of_sale / account.bank.statement.cashbox / pos_config_ids (one2many) : DEL relation: pos.config
|
10
|
+
point_of_sale / account.bank.statement.line / pos_statement_id (many2one) : DEL relation: pos.order
|
11
|
+
# NOTHING TO DO
|
12
|
+
|
13
|
+
point_of_sale / account.move / pos_payment_ids (one2many) : NEW relation: pos.payment
|
14
|
+
point_of_sale / pos.payment / account_move_id (many2one) : NEW relation: account.move
|
15
|
+
# NOTHING TO DO: new relation
|
16
|
+
|
17
|
+
point_of_sale / account.payment / force_outstanding_account_id (many2one): NEW relation: account.account
|
18
|
+
point_of_sale / account.payment / pos_payment_method_id (many2one): NEW relation: pos.payment.method
|
19
|
+
# NOTHING TO DO: new relations
|
20
|
+
|
21
|
+
point_of_sale / account.payment / pos_session_id (many2one) : NEW relation: pos.session
|
22
|
+
point_of_sale / pos.session / bank_payment_ids (one2many) : NEW relation: account.payment
|
23
|
+
# NOTHING TO DO: new relation
|
24
|
+
|
25
|
+
point_of_sale / barcode.rule / type (False) : selection_keys is now '['alias', 'cashier', 'client', 'discount', 'expiration_date', 'location', 'location_dest', 'lot', 'package', 'package_type', 'packaging_date', 'price', 'product', 'quantity', 'use_date', 'weight']' ('['alias', 'cashier', 'client', 'discount', 'location', 'lot', 'package', 'price', 'product', 'weight']')
|
26
|
+
# NOTHING TO DO: same selection options in this module
|
27
|
+
|
28
|
+
point_of_sale / pos.bill / name (char) : NEW
|
29
|
+
point_of_sale / pos.bill / pos_config_ids (many2many) : NEW relation: pos.config
|
30
|
+
point_of_sale / pos.bill / value (float) : NEW required
|
31
|
+
# NOTHING TO DO: new model
|
32
|
+
|
33
|
+
point_of_sale / pos.config / cash_control (boolean) : not stored anymore
|
34
|
+
point_of_sale / pos.config / cash_control (boolean) : now a function
|
35
|
+
# NOTHING TO DO
|
36
|
+
|
37
|
+
point_of_sale / pos.config / default_bill_ids (many2many) : NEW relation: pos.bill
|
38
|
+
point_of_sale / pos.config / default_cashbox_id (many2one) : DEL relation: account.bank.statement.cashbox
|
39
|
+
# NOTHING TO DO (?): statement cashbox is replaced by pos bills
|
40
|
+
|
41
|
+
point_of_sale / pos.config / iface_customer_facing_display (boolean): not stored anymore
|
42
|
+
point_of_sale / pos.config / iface_customer_facing_display (boolean): now a function
|
43
|
+
point_of_sale / pos.config / iface_customer_facing_display_local (boolean): NEW
|
44
|
+
point_of_sale / pos.config / iface_customer_facing_display_via_proxy (boolean): NEW
|
45
|
+
# DONE: pre-migration: renamed iface_customer_facing_display to iface_customer_facing_display_via_proxy
|
46
|
+
|
47
|
+
point_of_sale / pos.config / iface_orderline_customer_notes (boolean): NEW
|
48
|
+
point_of_sale / pos.order.line / customer_note (char) : NEW
|
49
|
+
# NOTHING TO DO: new feature
|
50
|
+
|
51
|
+
point_of_sale / pos.config / iface_vkeyboard (boolean) : DEL
|
52
|
+
point_of_sale / pos.config / manage_orders (boolean) : DEL
|
53
|
+
# NOTHING TO DO: obsolete features
|
54
|
+
|
55
|
+
point_of_sale / pos.config / limited_partners_amount (integer): NEW hasdefault
|
56
|
+
point_of_sale / pos.config / limited_partners_loading (boolean): NEW
|
57
|
+
point_of_sale / pos.config / limited_products_amount (integer): NEW hasdefault
|
58
|
+
point_of_sale / pos.config / limited_products_loading (boolean): NEW
|
59
|
+
point_of_sale / pos.config / partner_load_background (boolean): NEW
|
60
|
+
point_of_sale / pos.config / picking_policy (selection) : NEW required, selection_keys: ['direct', 'one'], req_default: function, hasdefault
|
61
|
+
point_of_sale / pos.config / product_load_background (boolean): NEW
|
62
|
+
point_of_sale / pos.config / route_id (many2one) : NEW relation: stock.location.route
|
63
|
+
point_of_sale / pos.config / set_maximum_difference (boolean): NEW
|
64
|
+
point_of_sale / pos.config / ship_later (boolean) : NEW
|
65
|
+
# NOTHING TO DO: new features
|
66
|
+
|
67
|
+
point_of_sale / pos.config / warehouse_id (many2one) : NEW relation: stock.warehouse, hasdefault
|
68
|
+
# DONE: pre-migration: pre-created column to avoid default
|
69
|
+
|
70
|
+
point_of_sale / pos.order / procurement_group_id (many2one): NEW relation: procurement.group
|
71
|
+
point_of_sale / procurement.group / pos_order_id (many2one) : NEW relation: pos.order
|
72
|
+
# NOTHING TO DO: new relations
|
73
|
+
|
74
|
+
point_of_sale / pos.order / to_ship (boolean) : NEW
|
75
|
+
point_of_sale / pos.order.line / is_total_cost_computed (boolean): NEW
|
76
|
+
point_of_sale / pos.order.line / total_cost (float) : NEW
|
77
|
+
# NOTHING TO DO: new features
|
78
|
+
|
79
|
+
point_of_sale / pos.order.line / refund_orderline_ids (one2many): NEW relation: pos.order.line
|
80
|
+
point_of_sale / pos.order.line / refunded_orderline_id (many2one): NEW relation: pos.order.line
|
81
|
+
# NOTHING TO DO: new relations
|
82
|
+
|
83
|
+
point_of_sale / pos.payment / company_id (many2one) : is now stored
|
84
|
+
# NOTHING TO DO: is a related field
|
85
|
+
|
86
|
+
point_of_sale / pos.payment.method / is_cash_count (boolean) : now a function
|
87
|
+
# NOTHING TO DO
|
88
|
+
|
89
|
+
point_of_sale / pos.payment.method / cash_journal_id (many2one) : DEL relation: account.journal
|
90
|
+
point_of_sale / pos.payment.method / journal_id (many2one) : NEW relation: account.journal
|
91
|
+
# DONE: pre-migration: renamed fields
|
92
|
+
|
93
|
+
point_of_sale / pos.payment.method / outstanding_account_id (many2one): NEW relation: account.account
|
94
|
+
# NOTHING TO DO: new feature
|
95
|
+
|
96
|
+
point_of_sale / pos.session / opening_notes (text) : NEW
|
97
|
+
# NOTHING TO DO: new feature
|
98
|
+
|
99
|
+
---XML records in module 'point_of_sale'---
|
100
|
+
NEW ir.actions.act_window: point_of_sale.action_pos_bill
|
101
|
+
DEL ir.actions.report: point_of_sale.pos_invoice_report
|
102
|
+
NEW ir.model.access: point_of_sale.access_account_payment_method_line_pos_user
|
103
|
+
NEW ir.model.access: point_of_sale.access_pos_bill
|
104
|
+
NEW ir.model.access: point_of_sale.access_pos_close_session_wizard
|
105
|
+
DEL ir.model.access: point_of_sale.access_closing_balance_confirm_wizard
|
106
|
+
NEW ir.ui.menu: point_of_sale.menu_pos_bill
|
107
|
+
NEW ir.ui.view: point_of_sale.product_product_tree_view
|
108
|
+
NEW ir.ui.view: point_of_sale.product_template_only_form_view
|
109
|
+
NEW ir.ui.view: point_of_sale.product_template_tree_view
|
110
|
+
NEW ir.ui.view: point_of_sale.report_invoice_document
|
111
|
+
NEW ir.ui.view: point_of_sale.report_pos_order_view_tree
|
112
|
+
NEW ir.ui.view: point_of_sale.view_form_pos_close_session_wizard
|
113
|
+
NEW ir.ui.view: point_of_sale.view_pos_bill_form
|
114
|
+
NEW ir.ui.view: point_of_sale.view_pos_bill_tree
|
115
|
+
DEL ir.ui.view: point_of_sale.assets
|
116
|
+
DEL ir.ui.view: point_of_sale.assets_backend
|
117
|
+
DEL ir.ui.view: point_of_sale.assets_tests
|
118
|
+
DEL ir.ui.view: point_of_sale.closing_balance_confirm
|
119
|
+
DEL ir.ui.view: point_of_sale.customer_facing_display_html
|
120
|
+
DEL ir.ui.view: point_of_sale.pos_assets_backend
|
121
|
+
DEL ir.ui.view: point_of_sale.qunit_suite_tests
|
122
|
+
DEL ir.ui.view: point_of_sale.report_invoice
|
123
|
+
DEL ir.ui.view: point_of_sale.view_account_bnk_stmt_cashbox
|
124
|
+
DEL ir.ui.view: point_of_sale.view_account_bnk_stmt_cashbox_footer
|
125
|
+
NEW pos.bill: point_of_sale.0_01 (noupdate)
|
126
|
+
NEW pos.bill: point_of_sale.0_02 (noupdate)
|
127
|
+
NEW pos.bill: point_of_sale.0_05 (noupdate)
|
128
|
+
NEW pos.bill: point_of_sale.0_10 (noupdate)
|
129
|
+
NEW pos.bill: point_of_sale.0_20 (noupdate)
|
130
|
+
NEW pos.bill: point_of_sale.0_50 (noupdate)
|
131
|
+
NEW pos.bill: point_of_sale.100_00 (noupdate)
|
132
|
+
NEW pos.bill: point_of_sale.10_00 (noupdate)
|
133
|
+
NEW pos.bill: point_of_sale.1_00 (noupdate)
|
134
|
+
NEW pos.bill: point_of_sale.200_00 (noupdate)
|
135
|
+
NEW pos.bill: point_of_sale.20_00 (noupdate)
|
136
|
+
NEW pos.bill: point_of_sale.2_00 (noupdate)
|
137
|
+
NEW pos.bill: point_of_sale.500_00 (noupdate)
|
138
|
+
NEW pos.bill: point_of_sale.50_00 (noupdate)
|
139
|
+
NEW pos.bill: point_of_sale.5_00 (noupdate)
|
140
|
+
# NOTHING TO DO
|
@@ -1,6 +1,50 @@
|
|
1
|
+
import re
|
2
|
+
|
1
3
|
from openupgradelib import openupgrade
|
2
4
|
|
3
5
|
|
6
|
+
def extract_footer_copyright_company_name(env):
|
7
|
+
"""Replace Copyright content in the new v15 template so as not to lose
|
8
|
+
content from previous versions if it has been customised."""
|
9
|
+
main_copyright_view = env.ref("website.footer_copyright_company_name")
|
10
|
+
if not main_copyright_view:
|
11
|
+
return
|
12
|
+
main_copyright_arch = main_copyright_view.arch_db
|
13
|
+
main_copyright_pattern = r'<span class="o_footer_copyright_name mr-2">(.*?)<\/span>'
|
14
|
+
main_copyright_matches = re.findall(
|
15
|
+
main_copyright_pattern,
|
16
|
+
main_copyright_arch,
|
17
|
+
re.DOTALL,
|
18
|
+
)
|
19
|
+
website_layout_views = env["ir.ui.view"].search(
|
20
|
+
[("key", "=", "website.layout"), ("website_id", "!=", False)]
|
21
|
+
)
|
22
|
+
for view in website_layout_views:
|
23
|
+
website_layout_arch = view.arch_db
|
24
|
+
website_layout_pattern = (
|
25
|
+
r'<span class="o_footer_copyright_name mr-2">(.*?)<\/span>'
|
26
|
+
)
|
27
|
+
website_layout_matches = re.findall(
|
28
|
+
website_layout_pattern, website_layout_arch, re.DOTALL
|
29
|
+
)
|
30
|
+
if website_layout_matches:
|
31
|
+
new_arch = main_copyright_arch.replace(
|
32
|
+
main_copyright_matches[0], website_layout_matches[0]
|
33
|
+
)
|
34
|
+
website_copyright_view = env["ir.ui.view"].search(
|
35
|
+
[
|
36
|
+
("key", "=", "website.footer_copyright_company_name"),
|
37
|
+
("website_id", "!=", False),
|
38
|
+
],
|
39
|
+
)
|
40
|
+
if website_copyright_view:
|
41
|
+
website_copyright_view.arch_db = new_arch
|
42
|
+
else:
|
43
|
+
main_copyright_view.copy(
|
44
|
+
{"website_id": view.website_id.id, "arch_db": new_arch}
|
45
|
+
)
|
46
|
+
|
47
|
+
|
4
48
|
def update_website_form_call(env):
|
5
49
|
# Update website views containing calls to "/website_form/" to "/website/form/"
|
6
50
|
views = env["ir.ui.view"].search([("arch_db", "like", 'action="/website_form/"')])
|
@@ -17,3 +61,4 @@ def migrate(env, version):
|
|
17
61
|
openupgrade.load_data(env.cr, "website", "15.0.1.0/noupdate_changes.xml")
|
18
62
|
openupgrade.delete_records_safely_by_xml_id(env, ["website.action_website_edit"])
|
19
63
|
update_website_form_call(env)
|
64
|
+
extract_footer_copyright_company_name(env)
|
@@ -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.426
|
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)
|
@@ -468,7 +468,9 @@ odoo/addons/openupgrade_scripts/scripts/payment_transfer/15.0.2.0/upgrade_analys
|
|
468
468
|
odoo/addons/openupgrade_scripts/scripts/payment_transfer/15.0.2.0/upgrade_analysis_work.txt,sha256=vrUWFcV-jmpcGiAXnbxwYySSS5SgXF7X4m0hELy38BA,1026
|
469
469
|
odoo/addons/openupgrade_scripts/scripts/phone_validation/15.0.2.1/upgrade_analysis.txt,sha256=YbxCg-4Tfc9R44jlmyuTQEFtFNtgl1l7lCaHDxDbq8Y,180
|
470
470
|
odoo/addons/openupgrade_scripts/scripts/phone_validation/15.0.2.1/upgrade_analysis_work.txt,sha256=7KehuhfF_NlsU7UAHsa8DLKepZDfvlqzQ8LNeaqrKQA,301
|
471
|
+
odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/pre-migration.py,sha256=4ZXoMWsxzbpcbD47KouWWaZwljWrQNju1CirNrN20w4,813
|
471
472
|
odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/upgrade_analysis.txt,sha256=JW0fHqC0rJ55cAKKyh-QCguOXhzrc-Bl1M_qcIGTs1k,7323
|
473
|
+
odoo/addons/openupgrade_scripts/scripts/point_of_sale/15.0.1.0.1/upgrade_analysis_work.txt,sha256=3hVzZrTJ6QgWSWUYMUzxYQhliXpwDPExI7HEY2wpKvI,8130
|
472
474
|
odoo/addons/openupgrade_scripts/scripts/portal/15.0.1.0/noupdate_changes.xml,sha256=WAyp4JiMPXFNkxlsbf3XLEQRX-UWdyulTWdbDnKV5Sw,6944
|
473
475
|
odoo/addons/openupgrade_scripts/scripts/portal/15.0.1.0/post-migration.py,sha256=UcYNM42lWfVpRzow6YuTlqAJvZQ7QWwPJ8Ow4OmoJ3U,322
|
474
476
|
odoo/addons/openupgrade_scripts/scripts/portal/15.0.1.0/upgrade_analysis.txt,sha256=l8mQ2GDy7TNjHmekN72wjfmTlihRTmlcmHc_HjaYiB0,798
|
@@ -668,7 +670,7 @@ odoo/addons/openupgrade_scripts/scripts/web_tour/15.0.0.1/upgrade_analysis_work.
|
|
668
670
|
odoo/addons/openupgrade_scripts/scripts/web_unsplash/15.0.1.1/upgrade_analysis.txt,sha256=kxLVUiwnzMAbx2K0SVGHjnPAOfaL6UxHAhJ-4ucPvxQ,213
|
669
671
|
odoo/addons/openupgrade_scripts/scripts/web_unsplash/15.0.1.1/upgrade_analysis_work.txt,sha256=WNs80voYwUMGaEk1UTLCO7pjOTrj1-RH7tzI-7H7s38,228
|
670
672
|
odoo/addons/openupgrade_scripts/scripts/website/15.0.1.0/noupdate_changes.xml,sha256=x4IAmdgjCs2l7nWTjsUlSlkki1av36Y--2rPKB1s64g,1032
|
671
|
-
odoo/addons/openupgrade_scripts/scripts/website/15.0.1.0/post-migration.py,sha256=
|
673
|
+
odoo/addons/openupgrade_scripts/scripts/website/15.0.1.0/post-migration.py,sha256=6LXnSEBtimuaOoObScBjxD-AkckoT4mkyN0OPR918ng,2516
|
672
674
|
odoo/addons/openupgrade_scripts/scripts/website/15.0.1.0/pre-migration.py,sha256=5UxjwjmvFlHU2m1Q1bJ4k3Tb20r75JKK1XSQIg5E8cU,177
|
673
675
|
odoo/addons/openupgrade_scripts/scripts/website/15.0.1.0/upgrade_analysis.txt,sha256=7qv5G63ToHQK9RaPsmdYCK4yc5NT7FpQKBFzO6vHbmQ,19019
|
674
676
|
odoo/addons/openupgrade_scripts/scripts/website/15.0.1.0/upgrade_analysis_work.txt,sha256=lOSre2m42TJLCvz9C2CTFkGAt-fUVpRV1FOKdh4lD4s,19485
|
@@ -775,7 +777,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/15.0.1.0/upgrade_analysi
|
|
775
777
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
776
778
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
777
779
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=s3mIFwyEmmeeUo4Vb8_kg863qPkRF6fgPb4ZemTd06I,12083
|
778
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
779
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
780
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
781
|
-
odoo_addon_openupgrade_scripts-15.0.1.0.0.
|
780
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info/METADATA,sha256=jxrD7swg3-tvXg-8IpvOll1REguO9UNNIrXB9YwUmx0,3420
|
781
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
782
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
783
|
+
odoo_addon_openupgrade_scripts-15.0.1.0.0.426.dist-info/RECORD,,
|
File without changes
|