odoo-addon-account-statement-import-camt 16.0.1.0.2__py3-none-any.whl → 17.0.1.0.0.1__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/account_statement_import_camt/README.rst +26 -19
- odoo/addons/account_statement_import_camt/__manifest__.py +1 -1
- odoo/addons/account_statement_import_camt/i18n/account_statement_import_camt.pot +23 -34
- odoo/addons/account_statement_import_camt/models/__init__.py +2 -4
- odoo/addons/account_statement_import_camt/models/account_journal.py +1 -3
- odoo/addons/account_statement_import_camt/models/account_statement_import.py +1 -1
- odoo/addons/account_statement_import_camt/models/{parser.py → account_statement_import_camt_parser.py} +16 -21
- odoo/addons/account_statement_import_camt/readme/CONTRIBUTORS.md +15 -0
- odoo/addons/account_statement_import_camt/readme/{CREDITS.rst → CREDITS.md} +2 -1
- odoo/addons/account_statement_import_camt/static/description/index.html +22 -21
- odoo/addons/account_statement_import_camt/test_files/golden-camt053-txdtls.pydata +2 -2
- odoo/addons/account_statement_import_camt/tests/test_import_bank_statement.py +8 -9
- {odoo_addon_account_statement_import_camt-16.0.1.0.2.dist-info → odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info}/METADATA +33 -29
- {odoo_addon_account_statement_import_camt-16.0.1.0.2.dist-info → odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info}/RECORD +17 -19
- {odoo_addon_account_statement_import_camt-16.0.1.0.2.dist-info → odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info}/WHEEL +1 -1
- odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info/top_level.txt +1 -0
- odoo/addons/account_statement_import_camt/models/account_bank_statement_line.py +0 -27
- odoo/addons/account_statement_import_camt/models/bank_statement.py +0 -13
- odoo/addons/account_statement_import_camt/readme/CONTRIBUTORS.rst +0 -9
- odoo_addon_account_statement_import_camt-16.0.1.0.2.dist-info/top_level.txt +0 -1
- /odoo/addons/account_statement_import_camt/readme/{DESCRIPTION.rst → DESCRIPTION.md} +0 -0
|
@@ -7,7 +7,7 @@ CAMT Format Bank Statements Import
|
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
8
|
!! changes will be overwritten. !!
|
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
10
|
+
!! source digest: sha256:a1b71f36ee91c7d89b3cf754ba711cd5d8e50cfb7f9742a9153ca74ce043d458
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -17,13 +17,13 @@ CAMT Format Bank Statements Import
|
|
|
17
17
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
18
|
:alt: License: AGPL-3
|
|
19
19
|
.. |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/
|
|
20
|
+
:target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_camt
|
|
21
21
|
:alt: OCA/bank-statement-import
|
|
22
22
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/bank-statement-import-
|
|
23
|
+
:target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_camt
|
|
24
24
|
:alt: Translate me on Weblate
|
|
25
25
|
.. |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=
|
|
26
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=17.0
|
|
27
27
|
:alt: Try me on Runboat
|
|
28
28
|
|
|
29
29
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -41,7 +41,7 @@ Bug Tracker
|
|
|
41
41
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-statement-import/issues>`_.
|
|
42
42
|
In case of trouble, please check there if your issue has already been reported.
|
|
43
43
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
44
|
-
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_camt%0Aversion:%
|
|
44
|
+
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_camt%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
45
45
|
|
|
46
46
|
Do not contact contributors directly about support or help with technical issues.
|
|
47
47
|
|
|
@@ -49,30 +49,37 @@ Credits
|
|
|
49
49
|
=======
|
|
50
50
|
|
|
51
51
|
Authors
|
|
52
|
-
|
|
52
|
+
-------
|
|
53
53
|
|
|
54
54
|
* Therp BV
|
|
55
55
|
|
|
56
56
|
Contributors
|
|
57
|
-
|
|
57
|
+
------------
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
* Stefan Rijnhart <stefan.rijnhart@opener.amsterdam>
|
|
61
|
-
* Ronald Portier <rportier@therp.nl>
|
|
62
|
-
* Andrea Stirpe <a.stirpe@onestein.nl>
|
|
63
|
-
* Maxence Groine <mgroine@fiefmanage.ch>
|
|
64
|
-
* Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
|
|
65
|
-
* `Trobz <https://trobz.com>`_:
|
|
59
|
+
- Holger Brunn <mail@hunki-enterprises.com>
|
|
66
60
|
|
|
67
|
-
|
|
61
|
+
- Stefan Rijnhart <stefan.rijnhart@opener.amsterdam>
|
|
62
|
+
|
|
63
|
+
- Ronald Portier <rportier@therp.nl>
|
|
64
|
+
|
|
65
|
+
- Andrea Stirpe <a.stirpe@onestein.nl>
|
|
66
|
+
|
|
67
|
+
- Maxence Groine <mgroine@fiefmanage.ch>
|
|
68
|
+
|
|
69
|
+
- Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
|
|
70
|
+
|
|
71
|
+
- `Trobz <https://trobz.com>`__:
|
|
72
|
+
|
|
73
|
+
- Son Ho <sonhd@trobz.com>
|
|
68
74
|
|
|
69
75
|
Other credits
|
|
70
|
-
|
|
76
|
+
-------------
|
|
71
77
|
|
|
72
|
-
The migration of this module from 15.0 to 16.0 was financially supported
|
|
78
|
+
The migration of this module from 15.0 to 16.0 was financially supported
|
|
79
|
+
by Camptocamp
|
|
73
80
|
|
|
74
81
|
Maintainers
|
|
75
|
-
|
|
82
|
+
-----------
|
|
76
83
|
|
|
77
84
|
This module is maintained by the OCA.
|
|
78
85
|
|
|
@@ -84,6 +91,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
84
91
|
mission is to support the collaborative development of Odoo features and
|
|
85
92
|
promote its widespread use.
|
|
86
93
|
|
|
87
|
-
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/
|
|
94
|
+
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_camt>`_ project on GitHub.
|
|
88
95
|
|
|
89
96
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
3
3
|
{
|
|
4
4
|
"name": "CAMT Format Bank Statements Import",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "17.0.1.0.0",
|
|
6
6
|
"license": "AGPL-3",
|
|
7
7
|
"author": "Therp BV, Odoo Community Association (OCA)",
|
|
8
8
|
"website": "https://github.com/OCA/bank-statement-import",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 17.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -20,36 +20,25 @@ msgstr ""
|
|
|
20
20
|
|
|
21
21
|
#. module: account_statement_import_camt
|
|
22
22
|
#. odoo-python
|
|
23
|
-
#: code:addons/account_statement_import_camt/models/
|
|
23
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
24
24
|
#, python-format
|
|
25
25
|
msgid "Account Servicer Reference"
|
|
26
26
|
msgstr ""
|
|
27
27
|
|
|
28
28
|
#. module: account_statement_import_camt
|
|
29
29
|
#. odoo-python
|
|
30
|
-
#: code:addons/account_statement_import_camt/models/
|
|
31
|
-
#: code:addons/account_statement_import_camt/models/parser.py:0
|
|
30
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
32
31
|
#, python-format
|
|
33
32
|
msgid "Additional Entry Information"
|
|
34
33
|
msgstr ""
|
|
35
34
|
|
|
36
35
|
#. module: account_statement_import_camt
|
|
37
36
|
#. odoo-python
|
|
38
|
-
#: code:addons/account_statement_import_camt/models/
|
|
37
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
39
38
|
#, python-format
|
|
40
39
|
msgid "Additional Transaction Information"
|
|
41
40
|
msgstr ""
|
|
42
41
|
|
|
43
|
-
#. module: account_statement_import_camt
|
|
44
|
-
#: model:ir.model,name:account_statement_import_camt.model_account_bank_statement
|
|
45
|
-
msgid "Bank Statement"
|
|
46
|
-
msgstr ""
|
|
47
|
-
|
|
48
|
-
#. module: account_statement_import_camt
|
|
49
|
-
#: model:ir.model,name:account_statement_import_camt.model_account_bank_statement_line
|
|
50
|
-
msgid "Bank Statement Line"
|
|
51
|
-
msgstr ""
|
|
52
|
-
|
|
53
42
|
#. module: account_statement_import_camt
|
|
54
43
|
#: model_terms:ir.ui.view,arch_db:account_statement_import_camt.account_statement_import_view
|
|
55
44
|
msgid "CAMT"
|
|
@@ -57,21 +46,21 @@ msgstr ""
|
|
|
57
46
|
|
|
58
47
|
#. module: account_statement_import_camt
|
|
59
48
|
#. odoo-python
|
|
60
|
-
#: code:addons/account_statement_import_camt/models/
|
|
49
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
61
50
|
#, python-format
|
|
62
51
|
msgid "Cheque Number"
|
|
63
52
|
msgstr ""
|
|
64
53
|
|
|
65
54
|
#. module: account_statement_import_camt
|
|
66
55
|
#. odoo-python
|
|
67
|
-
#: code:addons/account_statement_import_camt/models/
|
|
56
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
68
57
|
#, python-format
|
|
69
58
|
msgid "Communication"
|
|
70
59
|
msgstr ""
|
|
71
60
|
|
|
72
61
|
#. module: account_statement_import_camt
|
|
73
62
|
#. odoo-python
|
|
74
|
-
#: code:addons/account_statement_import_camt/models/
|
|
63
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
75
64
|
#, python-format
|
|
76
65
|
msgid "End To End Id"
|
|
77
66
|
msgstr ""
|
|
@@ -83,7 +72,7 @@ msgstr ""
|
|
|
83
72
|
|
|
84
73
|
#. module: account_statement_import_camt
|
|
85
74
|
#. odoo-python
|
|
86
|
-
#: code:addons/account_statement_import_camt/models/
|
|
75
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
87
76
|
#, python-format
|
|
88
77
|
msgid "Instructed Id"
|
|
89
78
|
msgstr ""
|
|
@@ -95,105 +84,105 @@ msgstr ""
|
|
|
95
84
|
|
|
96
85
|
#. module: account_statement_import_camt
|
|
97
86
|
#. odoo-python
|
|
98
|
-
#: code:addons/account_statement_import_camt/models/
|
|
87
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
99
88
|
#, python-format
|
|
100
89
|
msgid "Mandate Id"
|
|
101
90
|
msgstr ""
|
|
102
91
|
|
|
103
92
|
#. module: account_statement_import_camt
|
|
104
93
|
#. odoo-python
|
|
105
|
-
#: code:addons/account_statement_import_camt/models/
|
|
94
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
106
95
|
#, python-format
|
|
107
96
|
msgid "Msg Id"
|
|
108
97
|
msgstr ""
|
|
109
98
|
|
|
110
99
|
#. module: account_statement_import_camt
|
|
111
100
|
#. odoo-python
|
|
112
|
-
#: code:addons/account_statement_import_camt/models/
|
|
101
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
113
102
|
#, python-format
|
|
114
103
|
msgid "Partner Account Number"
|
|
115
104
|
msgstr ""
|
|
116
105
|
|
|
117
106
|
#. module: account_statement_import_camt
|
|
118
107
|
#. odoo-python
|
|
119
|
-
#: code:addons/account_statement_import_camt/models/
|
|
108
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
120
109
|
#, python-format
|
|
121
110
|
msgid "Partner Name"
|
|
122
111
|
msgstr ""
|
|
123
112
|
|
|
124
113
|
#. module: account_statement_import_camt
|
|
125
114
|
#. odoo-python
|
|
126
|
-
#: code:addons/account_statement_import_camt/models/
|
|
115
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
127
116
|
#, python-format
|
|
128
117
|
msgid "Postal Address"
|
|
129
118
|
msgstr ""
|
|
130
119
|
|
|
131
120
|
#. module: account_statement_import_camt
|
|
132
121
|
#. odoo-python
|
|
133
|
-
#: code:addons/account_statement_import_camt/models/
|
|
122
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
134
123
|
#, python-format
|
|
135
124
|
msgid "Reference"
|
|
136
125
|
msgstr ""
|
|
137
126
|
|
|
138
127
|
#. module: account_statement_import_camt
|
|
139
128
|
#. odoo-python
|
|
140
|
-
#: code:addons/account_statement_import_camt/models/
|
|
129
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
141
130
|
#, python-format
|
|
142
131
|
msgid "Return Reason Additional Information"
|
|
143
132
|
msgstr ""
|
|
144
133
|
|
|
145
134
|
#. module: account_statement_import_camt
|
|
146
135
|
#. odoo-python
|
|
147
|
-
#: code:addons/account_statement_import_camt/models/
|
|
136
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
148
137
|
#, python-format
|
|
149
138
|
msgid "Return Reason Code"
|
|
150
139
|
msgstr ""
|
|
151
140
|
|
|
152
141
|
#. module: account_statement_import_camt
|
|
153
142
|
#. odoo-python
|
|
154
|
-
#: code:addons/account_statement_import_camt/models/
|
|
143
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
155
144
|
#, python-format
|
|
156
145
|
msgid "Return Reason Code (Proprietary)"
|
|
157
146
|
msgstr ""
|
|
158
147
|
|
|
159
148
|
#. module: account_statement_import_camt
|
|
160
149
|
#. odoo-python
|
|
161
|
-
#: code:addons/account_statement_import_camt/models/
|
|
150
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
162
151
|
#, python-format
|
|
163
152
|
msgid "Reversal Indicator"
|
|
164
153
|
msgstr ""
|
|
165
154
|
|
|
166
155
|
#. module: account_statement_import_camt
|
|
167
156
|
#. odoo-python
|
|
168
|
-
#: code:addons/account_statement_import_camt/models/
|
|
157
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
169
158
|
#, python-format
|
|
170
159
|
msgid "Structured Reference"
|
|
171
160
|
msgstr ""
|
|
172
161
|
|
|
173
162
|
#. module: account_statement_import_camt
|
|
174
163
|
#. odoo-python
|
|
175
|
-
#: code:addons/account_statement_import_camt/models/
|
|
164
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
176
165
|
#, python-format
|
|
177
166
|
msgid "Transaction Date"
|
|
178
167
|
msgstr ""
|
|
179
168
|
|
|
180
169
|
#. module: account_statement_import_camt
|
|
181
170
|
#. odoo-python
|
|
182
|
-
#: code:addons/account_statement_import_camt/models/
|
|
171
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
183
172
|
#, python-format
|
|
184
173
|
msgid "Transaction Identification"
|
|
185
174
|
msgstr ""
|
|
186
175
|
|
|
187
176
|
#. module: account_statement_import_camt
|
|
188
177
|
#. odoo-python
|
|
189
|
-
#: code:addons/account_statement_import_camt/models/
|
|
178
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
190
179
|
#, python-format
|
|
191
180
|
msgid "Transaction Type"
|
|
192
181
|
msgstr ""
|
|
193
182
|
|
|
194
183
|
#. module: account_statement_import_camt
|
|
195
184
|
#. odoo-python
|
|
196
|
-
#: code:addons/account_statement_import_camt/models/
|
|
185
|
+
#: code:addons/account_statement_import_camt/models/account_statement_import_camt_parser.py:0
|
|
197
186
|
#, python-format
|
|
198
187
|
msgid "Unstructured Reference"
|
|
199
188
|
msgstr ""
|
|
@@ -8,8 +8,6 @@ class AccountJournal(models.Model):
|
|
|
8
8
|
_inherit = "account.journal"
|
|
9
9
|
|
|
10
10
|
def _get_bank_statements_available_import_formats(self):
|
|
11
|
-
res = super(
|
|
12
|
-
AccountJournal, self
|
|
13
|
-
)._get_bank_statements_available_import_formats()
|
|
11
|
+
res = super()._get_bank_statements_available_import_formats()
|
|
14
12
|
res.extend([_("camt.053.001.02"), _("camt.054.001.02")])
|
|
15
13
|
return res
|
|
@@ -9,7 +9,7 @@ from odoo import models
|
|
|
9
9
|
_logger = logging.getLogger(__name__)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class AccountStatementImport(models.TransientModel):
|
|
13
13
|
_inherit = "account.statement.import"
|
|
14
14
|
|
|
15
15
|
def _parse_file(self, data_file):
|
|
@@ -9,7 +9,7 @@ from lxml import etree
|
|
|
9
9
|
from odoo import _, models
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class AccountStatementImportCamtParser(models.AbstractModel):
|
|
13
13
|
_name = "account.statement.import.camt.parser"
|
|
14
14
|
_description = "Account Bank Statement Import CAMT parser"
|
|
15
15
|
|
|
@@ -39,7 +39,7 @@ class CamtParser(models.AbstractModel):
|
|
|
39
39
|
If xpath_str is a list (or iterable), it will be seen as a series
|
|
40
40
|
of search path's in order of preference. The first item that results
|
|
41
41
|
in a found node will be used to set a value."""
|
|
42
|
-
if not isinstance(xpath_str,
|
|
42
|
+
if not isinstance(xpath_str, list | tuple):
|
|
43
43
|
xpath_str = [xpath_str]
|
|
44
44
|
for search_str in xpath_str:
|
|
45
45
|
found_node = node.xpath(search_str, namespaces={"ns": ns})
|
|
@@ -61,6 +61,7 @@ class CamtParser(models.AbstractModel):
|
|
|
61
61
|
node,
|
|
62
62
|
[
|
|
63
63
|
"./ns:RmtInf/ns:Ustrd|./ns:RtrInf/ns:AddtlInf",
|
|
64
|
+
"./ns:AddtlNtryInf",
|
|
64
65
|
"./ns:Refs/ns:InstrId",
|
|
65
66
|
],
|
|
66
67
|
transaction,
|
|
@@ -192,9 +193,8 @@ class CamtParser(models.AbstractModel):
|
|
|
192
193
|
)
|
|
193
194
|
if party_node:
|
|
194
195
|
name_node = node.xpath(
|
|
195
|
-
"./ns:RltdPties/ns:{
|
|
196
|
-
|
|
197
|
-
),
|
|
196
|
+
f"./ns:RltdPties/ns:{party_type}/ns:Nm |"
|
|
197
|
+
f"./ns:RltdPties/ns:{party_type}/ns:Pty/ns:Nm",
|
|
198
198
|
namespaces={"ns": ns},
|
|
199
199
|
)
|
|
200
200
|
if name_node:
|
|
@@ -245,20 +245,23 @@ class CamtParser(models.AbstractModel):
|
|
|
245
245
|
def generate_narration(self, transaction):
|
|
246
246
|
# this block ensure compatibility with v13
|
|
247
247
|
transaction["narration"] = {
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
248
|
+
"{} (RltdPties/Nm)".format(_("Partner Name")): transaction.get(
|
|
249
|
+
"partner_name", ""
|
|
250
|
+
),
|
|
251
|
+
"{} (RltdPties/Acct)".format(_("Partner Account Number")): transaction.get(
|
|
252
|
+
"account_number", ""
|
|
253
|
+
),
|
|
254
|
+
"{} (BookgDt)".format(_("Transaction Date")): transaction.get("date", ""),
|
|
253
255
|
_("Reference"): transaction.get("ref", ""),
|
|
254
256
|
_("Communication"): transaction.get("name", ""),
|
|
255
|
-
"
|
|
256
|
-
|
|
257
|
+
"{} (BkTxCd)".format(_("Transaction Type")): transaction.get(
|
|
258
|
+
"transaction_type", ""
|
|
259
|
+
),
|
|
257
260
|
**transaction["narration"],
|
|
258
261
|
}
|
|
259
262
|
|
|
260
263
|
transaction["narration"] = "\n".join(
|
|
261
|
-
["
|
|
264
|
+
[f"{key}: {val}" for key, val in transaction["narration"].items()]
|
|
262
265
|
)
|
|
263
266
|
|
|
264
267
|
def parse_entry(self, ns, node):
|
|
@@ -328,7 +331,6 @@ class CamtParser(models.AbstractModel):
|
|
|
328
331
|
|
|
329
332
|
details_nodes = node.xpath("./ns:NtryDtls/ns:TxDtls", namespaces={"ns": ns})
|
|
330
333
|
if len(details_nodes) == 0:
|
|
331
|
-
self.amend_transaction(transaction)
|
|
332
334
|
self.generate_narration(transaction)
|
|
333
335
|
yield transaction
|
|
334
336
|
return
|
|
@@ -336,7 +338,6 @@ class CamtParser(models.AbstractModel):
|
|
|
336
338
|
for node in details_nodes:
|
|
337
339
|
transaction = transaction_base.copy()
|
|
338
340
|
self.parse_transaction_details(ns, node, transaction)
|
|
339
|
-
self.amend_transaction(transaction)
|
|
340
341
|
self.generate_narration(transaction)
|
|
341
342
|
yield transaction
|
|
342
343
|
|
|
@@ -457,9 +458,3 @@ class CamtParser(models.AbstractModel):
|
|
|
457
458
|
account_number = statement.pop("account_number")
|
|
458
459
|
statements.append(statement)
|
|
459
460
|
return currency, account_number, statements
|
|
460
|
-
|
|
461
|
-
def amend_transaction(self, transaction):
|
|
462
|
-
if transaction.get("payment_ref") == "/":
|
|
463
|
-
transaction["payment_ref"] = transaction["narration"].get(
|
|
464
|
-
"%s (AddtlNtryInf)" % _("Additional Entry Information"), "/"
|
|
465
|
-
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
- Holger Brunn \<<mail@hunki-enterprises.com>\>
|
|
2
|
+
|
|
3
|
+
- Stefan Rijnhart \<<stefan.rijnhart@opener.amsterdam>\>
|
|
4
|
+
|
|
5
|
+
- Ronald Portier \<<rportier@therp.nl>\>
|
|
6
|
+
|
|
7
|
+
- Andrea Stirpe \<<a.stirpe@onestein.nl>\>
|
|
8
|
+
|
|
9
|
+
- Maxence Groine \<<mgroine@fiefmanage.ch>\>
|
|
10
|
+
|
|
11
|
+
- Iryna Vyshnevska \<<i.vyshnevska@mobilunity.com>\>
|
|
12
|
+
|
|
13
|
+
- [Trobz](https://trobz.com):
|
|
14
|
+
|
|
15
|
+
> - Son Ho \<<sonhd@trobz.com>\>
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
The migration of this module from 15.0 to 16.0 was financially supported
|
|
1
|
+
The migration of this module from 15.0 to 16.0 was financially supported
|
|
2
|
+
by Camptocamp
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
|
-
<meta name="generator" content="Docutils:
|
|
5
|
+
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
|
6
6
|
<title>CAMT Format Bank Statements Import</title>
|
|
7
7
|
<style type="text/css">
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
:Author: David Goodger (goodger@python.org)
|
|
11
|
-
:Id: $Id: html4css1.css
|
|
11
|
+
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
|
12
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
|
13
13
|
|
|
14
14
|
Default cascading style sheet for the HTML output of Docutils.
|
|
15
15
|
|
|
16
|
-
See
|
|
16
|
+
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
|
17
17
|
customize this style sheet.
|
|
18
18
|
*/
|
|
19
19
|
|
|
@@ -366,43 +366,43 @@ ul.auto-toc {
|
|
|
366
366
|
!! This file is generated by oca-gen-addon-readme !!
|
|
367
367
|
!! changes will be overwritten. !!
|
|
368
368
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
369
|
-
!! source digest: sha256:
|
|
369
|
+
!! source digest: sha256:a1b71f36ee91c7d89b3cf754ba711cd5d8e50cfb7f9742a9153ca74ce043d458
|
|
370
370
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
371
|
-
<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/
|
|
371
|
+
<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_camt"><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_camt"><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&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
372
372
|
<p>Module to import SEPA CAMT.053 and CAMT.054 Format bank statement files.</p>
|
|
373
373
|
<p><strong>Table of contents</strong></p>
|
|
374
374
|
<div class="contents local topic" id="contents">
|
|
375
375
|
<ul class="simple">
|
|
376
|
-
<li><a class="reference internal" href="#bug-tracker" id="
|
|
377
|
-
<li><a class="reference internal" href="#credits" id="
|
|
378
|
-
<li><a class="reference internal" href="#authors" id="
|
|
379
|
-
<li><a class="reference internal" href="#contributors" id="
|
|
380
|
-
<li><a class="reference internal" href="#other-credits" id="
|
|
381
|
-
<li><a class="reference internal" href="#maintainers" id="
|
|
376
|
+
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li>
|
|
377
|
+
<li><a class="reference internal" href="#credits" id="id2">Credits</a><ul>
|
|
378
|
+
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li>
|
|
379
|
+
<li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li>
|
|
380
|
+
<li><a class="reference internal" href="#other-credits" id="id5">Other credits</a></li>
|
|
381
|
+
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
|
|
382
382
|
</ul>
|
|
383
383
|
</li>
|
|
384
384
|
</ul>
|
|
385
385
|
</div>
|
|
386
386
|
<div class="section" id="bug-tracker">
|
|
387
|
-
<h1><a class="toc-backref" href="#
|
|
387
|
+
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
|
|
388
388
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/bank-statement-import/issues">GitHub Issues</a>.
|
|
389
389
|
In case of trouble, please check there if your issue has already been reported.
|
|
390
390
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
391
|
-
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_camt%0Aversion:%
|
|
391
|
+
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_camt%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
392
392
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
393
393
|
</div>
|
|
394
394
|
<div class="section" id="credits">
|
|
395
|
-
<h1><a class="toc-backref" href="#
|
|
395
|
+
<h1><a class="toc-backref" href="#id2">Credits</a></h1>
|
|
396
396
|
<div class="section" id="authors">
|
|
397
|
-
<h2><a class="toc-backref" href="#
|
|
397
|
+
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
|
|
398
398
|
<ul class="simple">
|
|
399
399
|
<li>Therp BV</li>
|
|
400
400
|
</ul>
|
|
401
401
|
</div>
|
|
402
402
|
<div class="section" id="contributors">
|
|
403
|
-
<h2><a class="toc-backref" href="#
|
|
403
|
+
<h2><a class="toc-backref" href="#id4">Contributors</a></h2>
|
|
404
404
|
<ul>
|
|
405
|
-
<li><p class="first">Holger Brunn <<a class="reference external" href="mailto:
|
|
405
|
+
<li><p class="first">Holger Brunn <<a class="reference external" href="mailto:mail@hunki-enterprises.com">mail@hunki-enterprises.com</a>></p>
|
|
406
406
|
</li>
|
|
407
407
|
<li><p class="first">Stefan Rijnhart <<a class="reference external" href="mailto:stefan.rijnhart@opener.amsterdam">stefan.rijnhart@opener.amsterdam</a>></p>
|
|
408
408
|
</li>
|
|
@@ -424,17 +424,18 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
424
424
|
</ul>
|
|
425
425
|
</div>
|
|
426
426
|
<div class="section" id="other-credits">
|
|
427
|
-
<h2><a class="toc-backref" href="#
|
|
428
|
-
<p>The migration of this module from 15.0 to 16.0 was financially supported
|
|
427
|
+
<h2><a class="toc-backref" href="#id5">Other credits</a></h2>
|
|
428
|
+
<p>The migration of this module from 15.0 to 16.0 was financially supported
|
|
429
|
+
by Camptocamp</p>
|
|
429
430
|
</div>
|
|
430
431
|
<div class="section" id="maintainers">
|
|
431
|
-
<h2><a class="toc-backref" href="#
|
|
432
|
+
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
|
|
432
433
|
<p>This module is maintained by the OCA.</p>
|
|
433
434
|
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
|
434
435
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
435
436
|
mission is to support the collaborative development of Odoo features and
|
|
436
437
|
promote its widespread use.</p>
|
|
437
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/
|
|
438
|
+
<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_camt">OCA/bank-statement-import</a> project on GitHub.</p>
|
|
438
439
|
<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>
|
|
439
440
|
</div>
|
|
440
441
|
</div>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
'Account Servicer Reference (Refs/AcctSvcrRef): 123456CHCAFEBABE\n'
|
|
21
21
|
'Postal Address (PstlAdr): Place Saint-François | 14 | 1003 | Lausanne | CH1',
|
|
22
22
|
'partner_name': 'Banque Cantonale Vaudoise',
|
|
23
|
-
'payment_ref': '
|
|
23
|
+
'payment_ref': '/',
|
|
24
24
|
'ref': '302388292000011111111111111',
|
|
25
25
|
'transaction_type': 'PMNT-RCDT-VCOM'},
|
|
26
26
|
{'account_number': 'CH3333000000123456789',
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
'Account Servicer Reference (Refs/AcctSvcrRef): 123456CHCAFEBABE\n'
|
|
40
40
|
'Postal Address (PstlAdr): Place Saint-François | 14 | 1003 | Lausanne | CH2',
|
|
41
41
|
'partner_name': 'Banque Cantonale Vaudoise',
|
|
42
|
-
'payment_ref': '
|
|
42
|
+
'payment_ref': '/',
|
|
43
43
|
'ref': '302388292000022222222222222',
|
|
44
44
|
'transaction_type': 'PMNT-RCDT-VCOM'}]}])
|
|
@@ -9,8 +9,8 @@ import tempfile
|
|
|
9
9
|
from datetime import date
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
|
|
12
|
-
from odoo.modules.module import get_module_resource
|
|
13
12
|
from odoo.tests.common import TransactionCase
|
|
13
|
+
from odoo.tools.misc import file_path
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class TestParserCommon(TransactionCase):
|
|
@@ -45,15 +45,16 @@ class TestParserCommon(TransactionCase):
|
|
|
45
45
|
|
|
46
46
|
:param inputfile_path: path for file to import and test
|
|
47
47
|
:type inputfile_path: Path
|
|
48
|
-
:param goldenfile_path: path for file to use for comparison
|
|
48
|
+
:param goldenfile_path: path for file to use for comparison
|
|
49
|
+
(the expected values)
|
|
49
50
|
:type goldenfile_path: Path
|
|
50
51
|
"""
|
|
51
52
|
|
|
52
53
|
# Read the input file, store the actual imported values
|
|
53
|
-
with open(
|
|
54
|
+
with open(file_path(inputfile_path), "rb") as inputf:
|
|
54
55
|
res = self.parser.parse(inputf.read())
|
|
55
56
|
# Read the output file, store the expected imported values
|
|
56
|
-
with open(
|
|
57
|
+
with open(file_path(goldenfile_path)) as goldf:
|
|
57
58
|
gold_name, gold_lines = goldf.name, goldf.readlines()
|
|
58
59
|
# Save the imported values in a tmp file to compare them w/ the expected values
|
|
59
60
|
with tempfile.NamedTemporaryFile(mode="w+", suffix=".pydata") as tempf:
|
|
@@ -158,9 +159,7 @@ class TestImport(TransactionCase):
|
|
|
158
159
|
|
|
159
160
|
def test_statement_import(self):
|
|
160
161
|
"""Test correct creation of single statement."""
|
|
161
|
-
testfile =
|
|
162
|
-
"account_statement_import_camt", "test_files", "test-camt053"
|
|
163
|
-
)
|
|
162
|
+
testfile = file_path("account_statement_import_camt/test_files/test-camt053")
|
|
164
163
|
with open(testfile, "rb") as datafile:
|
|
165
164
|
camt_file = base64.b64encode(datafile.read())
|
|
166
165
|
|
|
@@ -190,8 +189,8 @@ class TestImport(TransactionCase):
|
|
|
190
189
|
|
|
191
190
|
def test_zip_import(self):
|
|
192
191
|
"""Test import of multiple statements from zip file."""
|
|
193
|
-
testfile =
|
|
194
|
-
"account_statement_import_camt
|
|
192
|
+
testfile = file_path(
|
|
193
|
+
"account_statement_import_camt/test_files/test-camt053.zip"
|
|
195
194
|
)
|
|
196
195
|
with open(testfile, "rb") as datafile:
|
|
197
196
|
camt_file = base64.b64encode(datafile.read())
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name: odoo-addon-
|
|
3
|
-
Version:
|
|
2
|
+
Name: odoo-addon-account_statement_import_camt
|
|
3
|
+
Version: 17.0.1.0.0.1
|
|
4
|
+
Requires-Python: >=3.10
|
|
5
|
+
Requires-Dist: odoo-addon-account_statement_import_file>=17.0dev,<17.1dev
|
|
6
|
+
Requires-Dist: odoo>=17.0a,<17.1dev
|
|
4
7
|
Summary: CAMT Format Bank Statements Import
|
|
5
8
|
Home-page: https://github.com/OCA/bank-statement-import
|
|
9
|
+
License: AGPL-3
|
|
6
10
|
Author: Therp BV, Odoo Community Association (OCA)
|
|
7
11
|
Author-email: support@odoo-community.org
|
|
8
|
-
License: AGPL-3
|
|
9
|
-
Platform: UNKNOWN
|
|
10
12
|
Classifier: Programming Language :: Python
|
|
11
13
|
Classifier: Framework :: Odoo
|
|
12
|
-
Classifier: Framework :: Odoo ::
|
|
14
|
+
Classifier: Framework :: Odoo :: 17.0
|
|
13
15
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
14
|
-
Requires-Python: >=3.10
|
|
15
|
-
Requires-Dist: odoo-addon-account-statement-import-file <16.1dev,>=16.0dev
|
|
16
|
-
Requires-Dist: odoo <16.1dev,>=16.0a
|
|
17
16
|
|
|
18
17
|
==================================
|
|
19
18
|
CAMT Format Bank Statements Import
|
|
@@ -24,7 +23,7 @@ CAMT Format Bank Statements Import
|
|
|
24
23
|
!! This file is generated by oca-gen-addon-readme !!
|
|
25
24
|
!! changes will be overwritten. !!
|
|
26
25
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
-
!! source digest: sha256:
|
|
26
|
+
!! source digest: sha256:a1b71f36ee91c7d89b3cf754ba711cd5d8e50cfb7f9742a9153ca74ce043d458
|
|
28
27
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
28
|
|
|
30
29
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -34,13 +33,13 @@ CAMT Format Bank Statements Import
|
|
|
34
33
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
35
34
|
:alt: License: AGPL-3
|
|
36
35
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github
|
|
37
|
-
:target: https://github.com/OCA/bank-statement-import/tree/
|
|
36
|
+
:target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_camt
|
|
38
37
|
:alt: OCA/bank-statement-import
|
|
39
38
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
40
|
-
:target: https://translation.odoo-community.org/projects/bank-statement-import-
|
|
39
|
+
:target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_camt
|
|
41
40
|
:alt: Translate me on Weblate
|
|
42
41
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
43
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=
|
|
42
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=17.0
|
|
44
43
|
:alt: Try me on Runboat
|
|
45
44
|
|
|
46
45
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -58,7 +57,7 @@ Bug Tracker
|
|
|
58
57
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-statement-import/issues>`_.
|
|
59
58
|
In case of trouble, please check there if your issue has already been reported.
|
|
60
59
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
61
|
-
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_camt%0Aversion:%
|
|
60
|
+
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_camt%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
62
61
|
|
|
63
62
|
Do not contact contributors directly about support or help with technical issues.
|
|
64
63
|
|
|
@@ -66,30 +65,37 @@ Credits
|
|
|
66
65
|
=======
|
|
67
66
|
|
|
68
67
|
Authors
|
|
69
|
-
|
|
68
|
+
-------
|
|
70
69
|
|
|
71
70
|
* Therp BV
|
|
72
71
|
|
|
73
72
|
Contributors
|
|
74
|
-
|
|
73
|
+
------------
|
|
74
|
+
|
|
75
|
+
- Holger Brunn <mail@hunki-enterprises.com>
|
|
76
|
+
|
|
77
|
+
- Stefan Rijnhart <stefan.rijnhart@opener.amsterdam>
|
|
75
78
|
|
|
76
|
-
|
|
77
|
-
* Stefan Rijnhart <stefan.rijnhart@opener.amsterdam>
|
|
78
|
-
* Ronald Portier <rportier@therp.nl>
|
|
79
|
-
* Andrea Stirpe <a.stirpe@onestein.nl>
|
|
80
|
-
* Maxence Groine <mgroine@fiefmanage.ch>
|
|
81
|
-
* Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
|
|
82
|
-
* `Trobz <https://trobz.com>`_:
|
|
79
|
+
- Ronald Portier <rportier@therp.nl>
|
|
83
80
|
|
|
84
|
-
|
|
81
|
+
- Andrea Stirpe <a.stirpe@onestein.nl>
|
|
82
|
+
|
|
83
|
+
- Maxence Groine <mgroine@fiefmanage.ch>
|
|
84
|
+
|
|
85
|
+
- Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
|
|
86
|
+
|
|
87
|
+
- `Trobz <https://trobz.com>`__:
|
|
88
|
+
|
|
89
|
+
- Son Ho <sonhd@trobz.com>
|
|
85
90
|
|
|
86
91
|
Other credits
|
|
87
|
-
|
|
92
|
+
-------------
|
|
88
93
|
|
|
89
|
-
The migration of this module from 15.0 to 16.0 was financially supported
|
|
94
|
+
The migration of this module from 15.0 to 16.0 was financially supported
|
|
95
|
+
by Camptocamp
|
|
90
96
|
|
|
91
97
|
Maintainers
|
|
92
|
-
|
|
98
|
+
-----------
|
|
93
99
|
|
|
94
100
|
This module is maintained by the OCA.
|
|
95
101
|
|
|
@@ -101,8 +107,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
101
107
|
mission is to support the collaborative development of Odoo features and
|
|
102
108
|
promote its widespread use.
|
|
103
109
|
|
|
104
|
-
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/
|
|
110
|
+
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_camt>`_ project on GitHub.
|
|
105
111
|
|
|
106
112
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
107
|
-
|
|
108
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
odoo/addons/account_statement_import_camt/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_statement_import_camt/README.rst,sha256=t_XHDYGWAhIrNSmY5F6MEbAxC-56EQrx350KfR3OKJo,3449
|
|
2
2
|
odoo/addons/account_statement_import_camt/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
|
3
|
-
odoo/addons/account_statement_import_camt/__manifest__.py,sha256=
|
|
4
|
-
odoo/addons/account_statement_import_camt/i18n/account_statement_import_camt.pot,sha256=
|
|
3
|
+
odoo/addons/account_statement_import_camt/__manifest__.py,sha256=RfbWKqNiO4YZSDHQZyCVU3AuM8V7n8hiuGVctiXmaYs,492
|
|
4
|
+
odoo/addons/account_statement_import_camt/i18n/account_statement_import_camt.pot,sha256=MsWip6K3N-WDijpNL-1QiblF61wHEUFveezSVqssDFA,6107
|
|
5
5
|
odoo/addons/account_statement_import_camt/i18n/de.po,sha256=pNMF_ShipraFlQvc--hGsOZT_PyXWveKMAX9luptivY,6177
|
|
6
6
|
odoo/addons/account_statement_import_camt/i18n/es.po,sha256=OA6EzKvE1aIVRI2eH2lGEWFxH42y3kZFNrhvaCO5JJc,6983
|
|
7
7
|
odoo/addons/account_statement_import_camt/i18n/fa.po,sha256=PtrRjJw123B1SmQHj3nIfUG6MprES471g-wl9gJa5gc,6499
|
|
@@ -17,20 +17,18 @@ odoo/addons/account_statement_import_camt/i18n/nl.po,sha256=Pr6akbeUe8FOA-WmDBUv
|
|
|
17
17
|
odoo/addons/account_statement_import_camt/i18n/pt_BR.po,sha256=3bx7RGv9yRZbemLRKP6nOd5uu_ujJgHsk7jkKkda42c,6175
|
|
18
18
|
odoo/addons/account_statement_import_camt/i18n/pt_PT.po,sha256=z2rqRu0PzAUT-vZc_KrRX3Iwz0fpeojgdVcu-7xoxtg,6141
|
|
19
19
|
odoo/addons/account_statement_import_camt/i18n/sl.po,sha256=P36jwGI-VBcfkcKDIJxWsg295Npu1dIn9NGhdvH123o,6202
|
|
20
|
-
odoo/addons/account_statement_import_camt/models/__init__.py,sha256=
|
|
21
|
-
odoo/addons/account_statement_import_camt/models/
|
|
22
|
-
odoo/addons/account_statement_import_camt/models/
|
|
23
|
-
odoo/addons/account_statement_import_camt/models/
|
|
24
|
-
odoo/addons/account_statement_import_camt/
|
|
25
|
-
odoo/addons/account_statement_import_camt/
|
|
26
|
-
odoo/addons/account_statement_import_camt/readme/
|
|
27
|
-
odoo/addons/account_statement_import_camt/readme/CREDITS.rst,sha256=XtPazYj6oqxvg62KjKqErJ8pssTcghFavMtYTDMOozc,87
|
|
28
|
-
odoo/addons/account_statement_import_camt/readme/DESCRIPTION.rst,sha256=JF6P6jSlcI00WiuY_uWzp-VuAzlZsMh3rco3Hw2go7E,73
|
|
20
|
+
odoo/addons/account_statement_import_camt/models/__init__.py,sha256=GcZFZShUPuQXOQyG3sNbuRMzmr8nfyXUCl4iCZL5778,120
|
|
21
|
+
odoo/addons/account_statement_import_camt/models/account_journal.py,sha256=iPQuB4uZ9Xtz8dM6OgZLECelXvVtZiAhZFfOmgunhZw,438
|
|
22
|
+
odoo/addons/account_statement_import_camt/models/account_statement_import.py,sha256=_TwNZ0fKtszPxJ6CJSJG8zg5HyxMBUgZ7efK_CpKXBY,1447
|
|
23
|
+
odoo/addons/account_statement_import_camt/models/account_statement_import_camt_parser.py,sha256=ldvyfAGS5QJx925TdUyZeFMBQo7t4Bl5wiiZLujcE2Q,16440
|
|
24
|
+
odoo/addons/account_statement_import_camt/readme/CONTRIBUTORS.md,sha256=PdrCzYatbDrFUNl6BzC_7WoAvkpDgxx0ywdVPfGfAq0,359
|
|
25
|
+
odoo/addons/account_statement_import_camt/readme/CREDITS.md,sha256=YP3UAmtN99a01txssowJnlWMSHoFGSrDmvhW_kir-dQ,87
|
|
26
|
+
odoo/addons/account_statement_import_camt/readme/DESCRIPTION.md,sha256=JF6P6jSlcI00WiuY_uWzp-VuAzlZsMh3rco3Hw2go7E,73
|
|
29
27
|
odoo/addons/account_statement_import_camt/readme/newsfragment/1_verbose_narration.feature,sha256=cKKbLxMpPc-CNfVB56VXvGdbh9-tR3RXTrKHNRLOBDA,902
|
|
30
28
|
odoo/addons/account_statement_import_camt/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
31
|
-
odoo/addons/account_statement_import_camt/static/description/index.html,sha256=
|
|
29
|
+
odoo/addons/account_statement_import_camt/static/description/index.html,sha256=MggAFifUYh51PRS0jHuPtKnr9z-NnHVLPm-HdpuxfeY,13533
|
|
32
30
|
odoo/addons/account_statement_import_camt/test_files/golden-camt053-no-ntry.pydata,sha256=qy8rWuvdmrJDfrLsYTOoBWI5_p7kCJUcH0GB5TLaPQ0,17
|
|
33
|
-
odoo/addons/account_statement_import_camt/test_files/golden-camt053-txdtls.pydata,sha256=
|
|
31
|
+
odoo/addons/account_statement_import_camt/test_files/golden-camt053-txdtls.pydata,sha256=s8KL0fkDiKVvnwQAZiupmJNvpdZ4T-GfWrLktMKIRWk,3123
|
|
34
32
|
odoo/addons/account_statement_import_camt/test_files/golden-camt053.pydata,sha256=Tc4sDXnTINTnW5yg07UsO53fomzto7vUU_cm0EyviQQ,6255
|
|
35
33
|
odoo/addons/account_statement_import_camt/test_files/golden-camt054.pydata,sha256=0PVc5GbnIDa530r-j6Ve0CuTiHY65GS7O6vUaQi4T1o,1681
|
|
36
34
|
odoo/addons/account_statement_import_camt/test_files/test-camt053,sha256=i0lZ1YfucBvgMV7_CCx3hIoxPqRFlv77zDWYWNYUNjA,11415
|
|
@@ -39,9 +37,9 @@ odoo/addons/account_statement_import_camt/test_files/test-camt053-txdtls,sha256=
|
|
|
39
37
|
odoo/addons/account_statement_import_camt/test_files/test-camt053.zip,sha256=7PBdW6gUth4FucG26-555dx46e9aAEzoJLRluCFaq8I,3111
|
|
40
38
|
odoo/addons/account_statement_import_camt/test_files/test-camt054,sha256=KmxxDrLbhICAML57Uf8OtIi_7Oml6cjnqxggQgKR0qg,3833
|
|
41
39
|
odoo/addons/account_statement_import_camt/tests/__init__.py,sha256=fbXubjUerAxsn870MhzwyT_uLaCIt7jWiD91l9FwsRo,41
|
|
42
|
-
odoo/addons/account_statement_import_camt/tests/test_import_bank_statement.py,sha256=
|
|
40
|
+
odoo/addons/account_statement_import_camt/tests/test_import_bank_statement.py,sha256=CC_aQ8iFGIm0wdb1cSyJhPq6IfiTGcZq7XFQNkxkU48,7887
|
|
43
41
|
odoo/addons/account_statement_import_camt/views/account_bank_statement_import.xml,sha256=sig4XIO6sOcK4OluJJuSZs8ikWsIrJuOTZEWmDxmEL8,529
|
|
44
|
-
odoo_addon_account_statement_import_camt-
|
|
45
|
-
odoo_addon_account_statement_import_camt-
|
|
46
|
-
odoo_addon_account_statement_import_camt-
|
|
47
|
-
odoo_addon_account_statement_import_camt-
|
|
42
|
+
odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info/METADATA,sha256=hac9_a093fxFiGRim6M5xX5DUivQL0u9JJWDqoViIgQ,4070
|
|
43
|
+
odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
44
|
+
odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
45
|
+
odoo_addon_account_statement_import_camt-17.0.1.0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
odoo
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Copyright 2019 Camptocamp SA
|
|
2
|
-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
3
|
-
from odoo import models
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AccountBankStatementLine(models.Model):
|
|
7
|
-
|
|
8
|
-
_inherit = "account.bank.statement.line"
|
|
9
|
-
|
|
10
|
-
def write(self, vals):
|
|
11
|
-
"""
|
|
12
|
-
Purpose of this hook is catch updates for records with name == '/'
|
|
13
|
-
|
|
14
|
-
In reconciliation_widget_preprocess, there is attempt to assign
|
|
15
|
-
partner into statement line, this assignment relies on name,
|
|
16
|
-
during import name setup to '/' for records without it
|
|
17
|
-
and this makes search results wrong and partner assignment randomly
|
|
18
|
-
"""
|
|
19
|
-
if (
|
|
20
|
-
self.env.context.get("no_reassign_empty_name")
|
|
21
|
-
and len(self) == 1
|
|
22
|
-
and len(vals.keys()) == 1
|
|
23
|
-
and "partner_id" in vals
|
|
24
|
-
and self.name == "/"
|
|
25
|
-
):
|
|
26
|
-
return True
|
|
27
|
-
return super().write(vals)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Copyright 2019 Camptocamp SA
|
|
2
|
-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
3
|
-
from odoo import models
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AccountBankStatement(models.Model):
|
|
7
|
-
|
|
8
|
-
_inherit = "account.bank.statement"
|
|
9
|
-
|
|
10
|
-
def reconciliation_widget_preprocess(self):
|
|
11
|
-
return super(
|
|
12
|
-
AccountBankStatement, self.with_context(no_reassign_empty_name=True)
|
|
13
|
-
).reconciliation_widget_preprocess()
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
* Holger Brunn <hbrunn@therp.nl>
|
|
2
|
-
* Stefan Rijnhart <stefan.rijnhart@opener.amsterdam>
|
|
3
|
-
* Ronald Portier <rportier@therp.nl>
|
|
4
|
-
* Andrea Stirpe <a.stirpe@onestein.nl>
|
|
5
|
-
* Maxence Groine <mgroine@fiefmanage.ch>
|
|
6
|
-
* Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
|
|
7
|
-
* `Trobz <https://trobz.com>`_:
|
|
8
|
-
|
|
9
|
-
* Son Ho <sonhd@trobz.com>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
odoo
|
|
File without changes
|