Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Le Filament
account_bank_statement_import_bpce
Commits
5caab04c
Commit
5caab04c
authored
Sep 17, 2021
by
Rémi - Le Filament
Browse files
[FIX] Update fields for v14
parent
9afdfd01
Changes
1
Hide whitespace changes
Inline
Side-by-side
wizard/account_bank_statement_import.py
View file @
5caab04c
...
...
@@ -116,14 +116,12 @@ class AccountBankStatementImport(models.TransientModel):
libelle
+=
" */* "
+
transaction
.
group
(
'note'
)
vals_line
=
{
'date'
:
datetime
.
datetime
.
strptime
(
transaction
.
group
(
'date'
),
self
.
regexp_version
[
file_version
][
'line_date_format'
]).
strftime
(
'%Y-%m-%d'
),
'
name
'
:
libelle
,
'
payment_ref
'
:
libelle
,
#'ref': transaction.group('unique_import_id'),
'amount'
:
transaction_amount
,
#'note': transaction.group('note'),
'unique_import_id'
:
str
(
index
)
+
transaction
.
group
(
'date'
)
+
transaction
.
group
(
'name'
)
+
str
(
transaction_amount
)
+
transaction
.
group
(
'note'
),
'account_number'
:
bank_account_number
,
'partner_id'
:
False
,
'bank_account_id'
:
self
.
_find_bank_account_id
(
bank_account_number
),
}
total_amt
+=
transaction_amount
transactions
.
append
(
vals_line
)
...
...
@@ -143,4 +141,3 @@ class AccountBankStatementImport(models.TransientModel):
'balance_end_real'
:
closing_balance
,
}
return
currency
,
bank_account_number
,
[
vals_bank_statement
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment