Skip to content

Commit

Permalink
[IMP] account_statement_import_sheet_file: pre-commit execution
Browse files Browse the repository at this point in the history
  • Loading branch information
feg-adhoc committed Dec 23, 2024
1 parent 230bb88 commit fc89873
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,8 @@ def _convert_line_to_transactions(self, line): # noqa: C901
transaction["currency_id"] = currency.id

if transaction_id:
transaction["unique_import_id"] = "{}-{}".format(
transaction_id,
int(timestamp.timestamp()),
transaction["unique_import_id"] = (
f"{transaction_id}-{int(timestamp.timestamp())}"
)

transaction["payment_ref"] = description or _("N/A")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
invisible="not no_header"
>
<span
class="fa fa-info-circle"
/> indicate the column number in the Columns section. The first column is 0.
class="fa fa-info-circle"
/> indicate the column number in the Columns section. The first column is 0.
</div>
</group>
<group invisible="not debit_credit_column">
Expand All @@ -66,8 +66,8 @@
<group colspan="2" col="2">
<div class="alert alert-info" role="alert" colspan="2">
<span
class="fa fa-info-circle"
/> Add the column names or column number (when the file has no header).
class="fa fa-info-circle"
/> Add the column names or column number (when the file has no header).
You can concatenate multiple columns in the file into the same field, indicating the
column names or numbers separated by comma.
</div>
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# generated from manifests external_dependencies
chardet
xlrd

0 comments on commit fc89873

Please sign in to comment.