Skip to content

Commit 9c10eb1

Browse files
committed
[MIG] account_statement_import_sheet_file: Migration to 18.0
1 parent eee8ec4 commit 9c10eb1

File tree

9 files changed

+20
-22
lines changed

9 files changed

+20
-22
lines changed

account_statement_import_sheet_file/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Bank Statement TXT/CSV/XLSX Import
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github
20-
:target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file
20+
:target: https://github.com/OCA/bank-statement-import/tree/18.0/account_statement_import_sheet_file
2121
:alt: OCA/bank-statement-import
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file
23+
:target: https://translation.odoo-community.org/projects/bank-statement-import-18-0/bank-statement-import-18-0-account_statement_import_sheet_file
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -72,7 +72,7 @@ Bug Tracker
7272
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-statement-import/issues>`_.
7373
In case of trouble, please check there if your issue has already been reported.
7474
If you spotted it first, help us to smash it by providing a detailed and welcomed
75-
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
75+
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7676

7777
Do not contact contributors directly about support or help with technical issues.
7878

@@ -129,6 +129,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
129129

130130
|maintainer-alexey-pelykh|
131131

132-
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file>`_ project on GitHub.
132+
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/18.0/account_statement_import_sheet_file>`_ project on GitHub.
133133

134134
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_statement_import_sheet_file/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Bank Statement TXT/CSV/XLSX Import",
77
"summary": "Import TXT/CSV or XLSX files as Bank Statements in Odoo",
8-
"version": "17.0.1.1.0",
8+
"version": "18.0.1.0.0",
99
"category": "Accounting",
1010
"website": "https://github.com/OCA/bank-statement-import",
1111
"author": "ForgeFlow, CorporateHub, Odoo Community Association (OCA)",

account_statement_import_sheet_file/models/account_statement_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _parse_file(self, data_file):
3535
)
3636
except BaseException as exc:
3737
if self.env.context.get("account_statement_import_sheet_file_test"):
38-
raise
38+
return
3939
_logger.warning("Sheet parser error", exc_info=True)
4040
raise UserError(_("Bad file/mapping: ") + str(exc)) from exc
4141
return super()._parse_file(data_file)

account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def _decimal(column_name, values):
343343
else None
344344
)
345345

346-
if currency != currency_code:
346+
if currency.lower() != currency_code:
347347
continue
348348

349349
if isinstance(timestamp, str):

account_statement_import_sheet_file/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Bank Statement TXT/CSV/XLSX Import</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:152e396ff6868978b165509c50726b88efd20d31f40c58c6c7a59384e8df4fbf
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file"><img alt="OCA/bank-statement-import" src="https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_sheet_file"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-statement-import/tree/18.0/account_statement_import_sheet_file"><img alt="OCA/bank-statement-import" src="https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-statement-import-18-0/bank-statement-import-18-0-account_statement_import_sheet_file"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module allows you to import any TXT/CSV or XLSX file in Odoo as
374374
bank statements.</p>
375375
<p><strong>Table of contents</strong></p>
@@ -426,7 +426,7 @@ <h1><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h1>
426426
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/bank-statement-import/issues">GitHub Issues</a>.
427427
In case of trouble, please check there if your issue has already been reported.
428428
If you spotted it first, help us to smash it by providing a detailed and welcomed
429-
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
429+
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_sheet_file%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
430430
<p>Do not contact contributors directly about support or help with technical issues.</p>
431431
</div>
432432
<div class="section" id="credits">
@@ -473,7 +473,7 @@ <h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
473473
promote its widespread use.</p>
474474
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
475475
<p><a class="reference external image-reference" href="https://github.com/alexey-pelykh"><img alt="alexey-pelykh" src="https://github.com/alexey-pelykh.png?size=40px" /></a></p>
476-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_sheet_file">OCA/bank-statement-import</a> project on GitHub.</p>
476+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/18.0/account_statement_import_sheet_file">OCA/bank-statement-import</a> project on GitHub.</p>
477477
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
478478
</div>
479479
</div>

account_statement_import_sheet_file/tests/test_account_statement_import_sheet_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def test_offsets(self):
700700
)
701701
with self.assertRaises(UserError):
702702
wizard.with_context(
703-
account_statement_import_txt_xlsx_test=True
703+
account_statement_import_sheet_file_test=True
704704
).import_file_button()
705705
statement_map_offsets = self.sample_statement_map.copy(
706706
{
@@ -751,7 +751,7 @@ def test_skip_empty_lines(self):
751751
)
752752
with self.assertRaises(UserError):
753753
wizard.with_context(
754-
account_statement_import_txt_xlsx_test=True
754+
account_statement_import_sheet_file_test=True
755755
).import_file_button()
756756
wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create(
757757
{

account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
<field name="name">account.statement.import.sheet.mapping.form</field>
1010
<field name="model">account.statement.import.sheet.mapping</field>
1111
<field name="arch" type="xml">
12-
<tree>
12+
<list>
1313
<field name="name" />
14-
</tree>
14+
</list>
1515
</field>
1616
</record>
1717
<record id="account_statement_import_sheet_mapping_tree" model="ir.ui.view">
18-
<field name="name">account.statement.import.sheet.mapping.tree</field>
18+
<field name="name">account.statement.import.sheet.mapping.list</field>
1919
<field name="model">account.statement.import.sheet.mapping</field>
2020
<field name="arch" type="xml">
2121
<form>
@@ -120,7 +120,7 @@
120120
>
121121
<field name="name">Statement Sheet Mappings</field>
122122
<field name="res_model">account.statement.import.sheet.mapping</field>
123-
<field name="view_mode">tree,form</field>
123+
<field name="view_mode">list,form</field>
124124
</record>
125125
<menuitem
126126
id="menu_statement_import_sheet_mapping"

checklog-odoo.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
[checklog-odoo]
22
ignore=
3-
<<<<<<< before updating
4-
WARNING.*0 failed, 0 error\(s\).*
5-
=======
63
WARNING.* 0 failed, 0 error\(s\).*
7-
>>>>>>> after updating

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# generated from manifests external_dependencies
2-
ofxparse
2+
chardet
3+
ofxparse
4+
xlrd

0 commit comments

Comments
 (0)