odoo-addon-openupgrade-scripts 18.0.1.0.0.415__py3-none-any.whl → 18.0.1.0.0.424__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/account/18.0.1.3/post-migration.py +30 -0
- odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/upgrade_analysis_work.txt +1 -1
- odoo/addons/openupgrade_scripts/scripts/account_check_printing/18.0.1.0/upgrade_analysis_work.txt +15 -0
- odoo/addons/openupgrade_scripts/scripts/account_debit_note/18.0.1.0/pre-migration.py +22 -0
- odoo/addons/openupgrade_scripts/scripts/account_debit_note/18.0.1.0/upgrade_analysis_work.txt +10 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_latam_base/18.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_latam_invoice_document/18.0.1.0/upgrade_analysis_work.txt +7 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.415.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.415.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info}/RECORD +12 -7
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.415.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.415.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info}/top_level.txt +0 -0
|
@@ -153,11 +153,41 @@ def account_account_code_fields(env):
|
|
|
153
153
|
)
|
|
154
154
|
|
|
155
155
|
|
|
156
|
+
def _handle_outstanding_accounts(env):
|
|
157
|
+
"""On version 17, the outstanding accounts were handled with 2 fields on each
|
|
158
|
+
res.company.
|
|
159
|
+
|
|
160
|
+
Now, they are handled putting specific XML-IDs on them, so we should create that
|
|
161
|
+
identifiers on the previous referenced accounts.
|
|
162
|
+
"""
|
|
163
|
+
IMD = env["ir.model.data"]
|
|
164
|
+
for column in [
|
|
165
|
+
"account_journal_payment_debit_account_id",
|
|
166
|
+
"account_journal_payment_credit_account_id",
|
|
167
|
+
]:
|
|
168
|
+
env.cr.execute(
|
|
169
|
+
f"SELECT id, {column} FROM res_company WHERE {column} IS NOT NULL"
|
|
170
|
+
)
|
|
171
|
+
for company_id, account_id in env.cr.fetchall():
|
|
172
|
+
name = f"{company_id}_{column}"
|
|
173
|
+
if not IMD.search([("module", "=", "account"), ("name", "=", name)]):
|
|
174
|
+
IMD.create(
|
|
175
|
+
{
|
|
176
|
+
"module": "account",
|
|
177
|
+
"name": name,
|
|
178
|
+
"model": "account.account",
|
|
179
|
+
"res_id": account_id,
|
|
180
|
+
"noupdate": True,
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
|
|
156
185
|
@openupgrade.migrate()
|
|
157
186
|
def migrate(env, version):
|
|
158
187
|
handle_lock_dates(env)
|
|
159
188
|
link_payments_to_moves(env)
|
|
160
189
|
account_account_code_fields(env)
|
|
190
|
+
_handle_outstanding_accounts(env)
|
|
161
191
|
openupgrade.m2o_to_x2m(
|
|
162
192
|
env.cr, env["account.account"], "account_account", "company_ids", "company_id"
|
|
163
193
|
)
|
|
@@ -211,7 +211,7 @@ account / product.template / property_account_income_id (many2one):
|
|
|
211
211
|
|
|
212
212
|
account / res.company / account_journal_payment_credit_account_id (many2one): DEL relation: account.account
|
|
213
213
|
account / res.company / account_journal_payment_debit_account_id (many2one): DEL relation: account.account
|
|
214
|
-
#
|
|
214
|
+
# DONE: post-migration: Put corresponding XML-IDs to the pointed accounts
|
|
215
215
|
|
|
216
216
|
account / res.company / account_price_include (selection): NEW required, selection_keys: ['tax_excluded', 'tax_included'], hasdefault: default
|
|
217
217
|
account / res.company / autopost_bills (boolean) : NEW hasdefault: default
|
odoo/addons/openupgrade_scripts/scripts/account_check_printing/18.0.1.0/upgrade_analysis_work.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---Models in module 'account_check_printing'---
|
|
2
|
+
---Fields in module 'account_check_printing'---
|
|
3
|
+
account_check_printing / account.journal / bank_check_printing_layout (selection): NEW selection_keys: function
|
|
4
|
+
# NOTHING TO DO: New feature added in https://github.com/odoo/odoo/pull/162453
|
|
5
|
+
# If the field is empty, it is taken from the company (current behavior).
|
|
6
|
+
|
|
7
|
+
account_check_printing / account.move / preferred_payment_method_id (many2one): DEL relation: account.payment.method
|
|
8
|
+
account_check_printing / res.partner / property_payment_method_id (many2one): DEL relation: account.payment.method, stored: False
|
|
9
|
+
# NOTHING TO DO: Feature moved to the account module in https://github.com/odoo/odoo/pull/174537
|
|
10
|
+
# Handled in the migration script of the account module in https://github.com/OCA/OpenUpgrade/pull/4931
|
|
11
|
+
|
|
12
|
+
---XML records in module 'account_check_printing'---
|
|
13
|
+
DEL ir.ui.view: account_check_printing.view_account_invoice_filter
|
|
14
|
+
DEL ir.ui.view: account_check_printing.view_partner_property_form
|
|
15
|
+
# NOTHING TO DO: Feature moved to the account module in https://github.com/odoo/odoo/pull/174537
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Copyright 2025 Tecnativa - Carlos Lopez
|
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
|
+
from openupgradelib import openupgrade
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def fill_account_journal_debit_sequence(env):
|
|
7
|
+
"""
|
|
8
|
+
Ensure that the debit_sequence column exists in the account_journal table.
|
|
9
|
+
This column was previously part of the account_debit_note_sequence module,
|
|
10
|
+
which has now been merged into account_debit_note.
|
|
11
|
+
If the column does not exist,
|
|
12
|
+
create it and set its default value to False to maintain the previous behavior.
|
|
13
|
+
"""
|
|
14
|
+
if not openupgrade.column_exists(env.cr, "account_journal", "debit_sequence"):
|
|
15
|
+
openupgrade.add_columns(
|
|
16
|
+
env, [("account_journal", "debit_sequence", "boolean", False)]
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@openupgrade.migrate()
|
|
21
|
+
def migrate(env, version):
|
|
22
|
+
fill_account_journal_debit_sequence(env)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---Models in module 'account_debit_note'---
|
|
2
|
+
---Fields in module 'account_debit_note'---
|
|
3
|
+
account_debit_note / account.journal / debit_sequence (boolean) : previously in module account_debit_note_sequence
|
|
4
|
+
# DONE: pre-migration: if the column does not exist, create it and set it to False to preserve the previous behavior.
|
|
5
|
+
# otherwise, nothing to do. This column comes from the module account_debit_note_sequence,
|
|
6
|
+
# backported to V17 in https://github.com/odoo/odoo/pull/217128/commits/0239b1252fe04f208c7d5e993cda2384d3977fde
|
|
7
|
+
|
|
8
|
+
---XML records in module 'account_debit_note'---
|
|
9
|
+
NEW ir.ui.view: account_debit_note.view_account_journal_form_inherit_debit_note
|
|
10
|
+
# NOTHING TO DO: Handled by ORM
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---Models in module 'l10n_latam_invoice_document'---
|
|
2
|
+
---Fields in module 'l10n_latam_invoice_document'---
|
|
3
|
+
---XML records in module 'l10n_latam_invoice_document'---
|
|
4
|
+
NEW ir.ui.view: l10n_latam_invoice_document.external_layout_bubble
|
|
5
|
+
NEW ir.ui.view: l10n_latam_invoice_document.external_layout_folder
|
|
6
|
+
NEW ir.ui.view: l10n_latam_invoice_document.external_layout_wave
|
|
7
|
+
# NOTHING TO DO: Handled by ORM
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
odoo/addons/openupgrade_scripts/README.rst,sha256=RuTBUdBI9hVP6kr2WJenFV-0J5l2tgUfzuOEtG9MyKQ,3179
|
|
2
2
|
odoo/addons/openupgrade_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
odoo/addons/openupgrade_scripts/__manifest__.py,sha256=fZVzjupYlcmfrTQtiBu7wlaAqO4JWQncNAdQPEnpaCY,614
|
|
4
|
-
odoo/addons/openupgrade_scripts/apriori.py,sha256=
|
|
4
|
+
odoo/addons/openupgrade_scripts/apriori.py,sha256=slkuxF4eOQbflOjcQsY0qag3wYR08G9wpq7TKXyGiCs,4755
|
|
5
5
|
odoo/addons/openupgrade_scripts/readme/CONFIGURE.md,sha256=rnx8ADTYzVUB93PIG3Lib0iWBrphSfVRs6RMikklf3M,238
|
|
6
6
|
odoo/addons/openupgrade_scripts/readme/DESCRIPTION.md,sha256=6hwHccovmE9cfaV7PQPvKUvNJa-f_Uc1wgXyL_SrYck,86
|
|
7
7
|
odoo/addons/openupgrade_scripts/readme/INSTALL.md,sha256=NDKVZRv0J8BTqcSTD7JwUXL_AY-cDJoegn5IUTbEOFk,113
|
|
8
8
|
odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/noupdate_changes.xml,sha256=givzahE7VAv9gM1TkNDHs3qhNh3AZacox5q-hDuDjIU,4078
|
|
9
|
-
odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/post-migration.py,sha256=
|
|
9
|
+
odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/post-migration.py,sha256=ugqB7EoX2fLYchCfXWXCABAVsStuT49_KvLUdiVP840,7644
|
|
10
10
|
odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/pre-migration.py,sha256=8lgeeCdLEQtK2FfTqhJV8gKvlZEC5YWyTEKtuLPrbhw,8420
|
|
11
11
|
odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/upgrade_analysis.txt,sha256=xpQwQxWn0ktacfLBgmRuRMjvSY9R4ClAQlfLJRs35Tg,21369
|
|
12
|
-
odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/upgrade_analysis_work.txt,sha256=
|
|
12
|
+
odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/upgrade_analysis_work.txt,sha256=wxQD3CdbMhJ1Ch23FEh49rYmGT4sX9Q6rCAX0G90LT4,25352
|
|
13
13
|
odoo/addons/openupgrade_scripts/scripts/account/tests/data.py,sha256=beOIEOzb6-hvlpjM9VVZrSj8pqZ6U7AcrS-w3vkTgsU,490
|
|
14
14
|
odoo/addons/openupgrade_scripts/scripts/account/tests/test_migration.py,sha256=UsHOHhSkUkmcm4inSE8VgFIn79E-6i9FXt3v6jHW5HY,791
|
|
15
15
|
odoo/addons/openupgrade_scripts/scripts/account_check_printing/18.0.1.0/upgrade_analysis.txt,sha256=IY2z67lgzVtwG7Zzj71ks2why2Hwuz-mRPy9xEqfBcY,675
|
|
16
|
+
odoo/addons/openupgrade_scripts/scripts/account_check_printing/18.0.1.0/upgrade_analysis_work.txt,sha256=Yau4dQTsIkMAdgKcjmN5A8BHmJ2HRMmEjAMIjSq0qWs,1128
|
|
17
|
+
odoo/addons/openupgrade_scripts/scripts/account_debit_note/18.0.1.0/pre-migration.py,sha256=aZfQZTljp8gonwPVVDnkJ7HXnBU9Lo0nuuHge5wjIQQ,839
|
|
16
18
|
odoo/addons/openupgrade_scripts/scripts/account_debit_note/18.0.1.0/upgrade_analysis.txt,sha256=3y-M_RI3ZSz8bDb2NKGRb1jGkjPRpeOf9XqQTXZjetg,346
|
|
19
|
+
odoo/addons/openupgrade_scripts/scripts/account_debit_note/18.0.1.0/upgrade_analysis_work.txt,sha256=IoM4zn5bjUhHNrdyTaUrRR8caQa7J-KyD92eJ4gi32Q,701
|
|
17
20
|
odoo/addons/openupgrade_scripts/scripts/account_edi/18.0.1.0/upgrade_analysis.txt,sha256=9oOTmiRvFNMJlJ4jUcwZex9bu9H2ubgwgQI22Ep_dyI,156
|
|
18
21
|
odoo/addons/openupgrade_scripts/scripts/account_edi/18.0.1.0/upgrade_analysis_work.txt,sha256=PrVxXIPDX-g2kBxstg2GSHY6IU-dFU0fp2seVu2gUZk,172
|
|
19
22
|
odoo/addons/openupgrade_scripts/scripts/account_edi_proxy_client/18.0.1.0/upgrade_analysis.txt,sha256=H9U9Nkn05WkI7C6e9u9Q7XE8b4ZwxDN7t91AM12pWKg,409
|
|
@@ -330,8 +333,10 @@ odoo/addons/openupgrade_scripts/scripts/l10n_ke_edi_tremol/18.0.1.0/upgrade_anal
|
|
|
330
333
|
odoo/addons/openupgrade_scripts/scripts/l10n_kh/18.0.1.0/upgrade_analysis.txt,sha256=5LbVhodradg4560JbQ3IJb8fRa5NsN1mKuK7Yjofm5o,10423
|
|
331
334
|
odoo/addons/openupgrade_scripts/scripts/l10n_kr/18.0.1.0/upgrade_analysis.txt,sha256=vo-RT4ywXNb1AwzekBqP4YjjNZ9O3s3SmTqoICKKM7k,35528
|
|
332
335
|
odoo/addons/openupgrade_scripts/scripts/l10n_latam_base/18.0.1.0/upgrade_analysis.txt,sha256=zTDvGDtpvxbwtlL19eoxZcGmxuFUZFsb4dVD6JUA1V8,168
|
|
336
|
+
odoo/addons/openupgrade_scripts/scripts/l10n_latam_base/18.0.1.0/upgrade_analysis_work.txt,sha256=MGFrShHv0IFS7EdAYFTK0WkGmmfM1p1_1QLw6px66VQ,184
|
|
333
337
|
odoo/addons/openupgrade_scripts/scripts/l10n_latam_check/18.0.1.0.0/upgrade_analysis.txt,sha256=KS6jS_Zn5y5kOECjPd9ECsgkdxBOsePGIYWky8VhZTI,3925
|
|
334
338
|
odoo/addons/openupgrade_scripts/scripts/l10n_latam_invoice_document/18.0.1.0/upgrade_analysis.txt,sha256=o3iM2chSAjmZMIOR5MonSRR3j6udMthOyyV_jcM5lmY,363
|
|
339
|
+
odoo/addons/openupgrade_scripts/scripts/l10n_latam_invoice_document/18.0.1.0/upgrade_analysis_work.txt,sha256=4nM9m_lgZYOeedN_Jgy5K_tNWw3Z-IP8sWCaEKpvWkI,395
|
|
335
340
|
odoo/addons/openupgrade_scripts/scripts/l10n_lt/18.0.1.0.0/upgrade_analysis.txt,sha256=fEzF55q_USVTG2KwU-lLztXp3oA_k-z3H9gr2pGd1Co,172
|
|
336
341
|
odoo/addons/openupgrade_scripts/scripts/l10n_lu/18.0.2.2/upgrade_analysis.txt,sha256=i5J3T0zppQdILmKN4r4WVMkoFvMEtOiaI9rAGvWBCgg,1544
|
|
337
342
|
odoo/addons/openupgrade_scripts/scripts/l10n_lv/18.0.1.0.0/upgrade_analysis.txt,sha256=THMfYHkBdzWqSE14uU8gTx9B5xtyx_-UkQ86NbDsAVY,316
|
|
@@ -792,7 +797,7 @@ odoo/addons/openupgrade_scripts/scripts/website_slides_survey/18.0.1.0/upgrade_a
|
|
|
792
797
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
|
793
798
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
794
799
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=Jc0qAThlH5WnoSq6vPamjC8WyMkdo_9zkhDuU1qW1VI,12722
|
|
795
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
|
796
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
|
797
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
|
798
|
-
odoo_addon_openupgrade_scripts-18.0.1.0.0.
|
|
800
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info/METADATA,sha256=oZUsBKyvrM2GDP29qaUPI2RfhjrQpKkA2R66mB-Q_Dw,3812
|
|
801
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
802
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
803
|
+
odoo_addon_openupgrade_scripts-18.0.1.0.0.424.dist-info/RECORD,,
|
|
File without changes
|