Skip to content
Snippets Groups Projects
user avatar
Guillaume (guva) authored
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>
d7309208
History
Name Last commit Last update