Skip to content

Commit

Permalink
[FIX] l10n_es_account_statement_import_n43_overlap: date error on imp…
Browse files Browse the repository at this point in the history
…ort statement
  • Loading branch information
FrankC013 authored and eantones committed Apr 16, 2024
1 parent 2bd1f28 commit 72ae772
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def _complete_stmts_vals(self, stmts_vals, journal, account_number):
bs_dates = [x.date for x in bs.line_ids]
bs_min_date, bs_max_date = min(bs_dates), max(bs_dates)
if bs_max_date >= imp_min_date and bs_min_date <= imp_max_date:
bs_display_name = [bs.date]
lang = self.env["res.lang"].search([("code", "=", self.env.lang)])
bs_display_name = [bs.date.strftime(lang.date_format)]
if bs.name:
bs_display_name.append("(%s)" % bs.name)
raise ValidationError(
Expand Down

0 comments on commit 72ae772

Please sign in to comment.