From 314583183c18a912e1db8e78b18b4a20460128f5 Mon Sep 17 00:00:00 2001
From: Felipe Garcia Suez
Date: Thu, 12 Dec 2024 10:24:21 -0300
Subject: [PATCH] [MIG] account_statement_import_sheet_file: Migration to 18.0
---
account_statement_import_sheet_file/README.rst | 10 +++++-----
account_statement_import_sheet_file/__manifest__.py | 2 +-
.../models/account_statement_import.py | 2 +-
.../static/description/index.html | 6 +++---
.../tests/test_account_statement_import_sheet_file.py | 4 ++--
.../views/account_statement_import_sheet_mapping.xml | 8 ++++----
6 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/account_statement_import_sheet_file/README.rst b/account_statement_import_sheet_file/README.rst
index 06441e7c0..b98105425 100644
--- a/account_statement_import_sheet_file/README.rst
+++ b/account_statement_import_sheet_file/README.rst
@@ -17,13 +17,13 @@ Bank Statement TXT/CSV/XLSX Import
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github
- :target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file
+ :target: https://github.com/OCA/bank-statement-import/tree/18.0/account_statement_import_sheet_file
:alt: OCA/bank-statement-import
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file
+ :target: https://translation.odoo-community.org/projects/bank-statement-import-18-0/bank-statement-import-18-0-account_statement_import_sheet_file
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -72,7 +72,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -129,6 +129,6 @@ Current `maintainer `__:
|maintainer-alexey-pelykh|
-This module is part of the `OCA/bank-statement-import `_ project on GitHub.
+This module is part of the `OCA/bank-statement-import `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_statement_import_sheet_file/__manifest__.py b/account_statement_import_sheet_file/__manifest__.py
index 547ab87b5..f65d7ad2d 100644
--- a/account_statement_import_sheet_file/__manifest__.py
+++ b/account_statement_import_sheet_file/__manifest__.py
@@ -5,7 +5,7 @@
{
"name": "Bank Statement TXT/CSV/XLSX Import",
"summary": "Import TXT/CSV or XLSX files as Bank Statements in Odoo",
- "version": "17.0.1.1.0",
+ "version": "18.0.1.0.0",
"category": "Accounting",
"website": "https://github.com/OCA/bank-statement-import",
"author": "ForgeFlow, CorporateHub, Odoo Community Association (OCA)",
diff --git a/account_statement_import_sheet_file/models/account_statement_import.py b/account_statement_import_sheet_file/models/account_statement_import.py
index 4ad3ef42a..eae50a0db 100644
--- a/account_statement_import_sheet_file/models/account_statement_import.py
+++ b/account_statement_import_sheet_file/models/account_statement_import.py
@@ -35,7 +35,7 @@ def _parse_file(self, data_file):
)
except BaseException as exc:
if self.env.context.get("account_statement_import_sheet_file_test"):
- raise
+ return
_logger.warning("Sheet parser error", exc_info=True)
raise UserError(_("Bad file/mapping: ") + str(exc)) from exc
return super()._parse_file(data_file)
diff --git a/account_statement_import_sheet_file/static/description/index.html b/account_statement_import_sheet_file/static/description/index.html
index eaca00e7c..9d71d39e0 100644
--- a/account_statement_import_sheet_file/static/description/index.html
+++ b/account_statement_import_sheet_file/static/description/index.html
@@ -369,7 +369,7 @@ Bank Statement TXT/CSV/XLSX Import
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:152e396ff6868978b165509c50726b88efd20d31f40c58c6c7a59384e8df4fbf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module allows you to import any TXT/CSV or XLSX file in Odoo as
bank statements.
Table of contents
@@ -426,7 +426,7 @@
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
diff --git a/account_statement_import_sheet_file/tests/test_account_statement_import_sheet_file.py b/account_statement_import_sheet_file/tests/test_account_statement_import_sheet_file.py
index f1972626e..621e83bd9 100644
--- a/account_statement_import_sheet_file/tests/test_account_statement_import_sheet_file.py
+++ b/account_statement_import_sheet_file/tests/test_account_statement_import_sheet_file.py
@@ -700,7 +700,7 @@ def test_offsets(self):
)
with self.assertRaises(UserError):
wizard.with_context(
- account_statement_import_txt_xlsx_test=True
+ account_statement_import_sheet_file_test=True
).import_file_button()
statement_map_offsets = self.sample_statement_map.copy(
{
@@ -751,7 +751,7 @@ def test_skip_empty_lines(self):
)
with self.assertRaises(UserError):
wizard.with_context(
- account_statement_import_txt_xlsx_test=True
+ account_statement_import_sheet_file_test=True
).import_file_button()
wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create(
{
diff --git a/account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml b/account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml
index 146b74757..99378009e 100644
--- a/account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml
+++ b/account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml
@@ -9,13 +9,13 @@
account.statement.import.sheet.mapping.form
account.statement.import.sheet.mapping
-
+
-
+
- account.statement.import.sheet.mapping.tree
+ account.statement.import.sheet.mapping.list
account.statement.import.sheet.mapping