Skip to content
Snippets Groups Projects
Commit d7309208 authored by Guillaume (guva)'s avatar Guillaume (guva)
Browse files

[FIX] account: latest statement on bank journal dashboard


Display the latest statement on journal dashboard.

Steps to reproduce:

- Create a bank statement for date X, with a line with date X + 1 day,
  confirm, reconcile and validate
- Create an other bank statement for date X, with a line with date X,
  confirm, reconcile and validate.
- Go to Accounting Dashboard
-> The latest statement is the first we created, instead of the last one

The reason is, the last statement was display depending on the
statements lines.

With this commit we change the domain to make it valif for bank
statement in order to search the last statement depending on the
order declared on account.bank.statement model.

opw-2752699

closes odoo/odoo#104333

X-original-commit: 76d0665a
Related: odoo/enterprise#33342
Signed-off-by: default avatarNicolas Viseur (vin) <vin@odoo.com>
Signed-off-by: default avatarGuillaume Vanleynseele (guva) <guva@odoo.com>
parent 6d4a7ae5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment