Compare commits
2 Commits
c221744462
...
0d54dd094a
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d54dd094a | |||
| 0318c0ba49 |
@@ -8,7 +8,8 @@
|
||||
"maintainer": "Quentin Mondot",
|
||||
"license": "AGPL-3",
|
||||
"category": "Tools",
|
||||
"summary": "Customization of OCA account_statement_import_online_ponto to retrieve more information with Credit Cooperatif bank",
|
||||
"summary": "Refacturer 1H à chaque installation : à décompter de https://elabore.coop/mail/view?model=project.task&res_id=5564&access_token=be355b7d-8ee5-44a6-9658-7de2649d0bd2. "
|
||||
"Customization of OCA account_statement_import_online_ponto to retrieve more information with Credit Cooperatif bank",
|
||||
# any module necessary for this one to work correctly
|
||||
"depends": [
|
||||
"base",
|
||||
|
||||
@@ -32,13 +32,13 @@ class OnlineBankStatementProvider(models.Model):
|
||||
ref_operation = self._extract_detail(
|
||||
details, "Référence de l'opération"
|
||||
)
|
||||
if ref_operation:
|
||||
if ref_operation and ref_operation != vals_line["payment_ref"]:
|
||||
vals_line["payment_ref"] = (
|
||||
f"{vals_line['payment_ref']} {ref_operation}"
|
||||
)
|
||||
|
||||
operation_reason = self._extract_detail(details, "Motif de l'opération")
|
||||
if operation_reason:
|
||||
if operation_reason and operation_reason != vals_line["ref"]:
|
||||
vals_line["ref"] = f"{vals_line['ref']} {operation_reason}"
|
||||
|
||||
if "partner_name" not in vals_line:
|
||||
|
||||
Reference in New Issue
Block a user