From 48904d4899ec1f81571efaf3a878d38378f1c556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Thu, 25 Jan 2024 10:21:49 +0100 Subject: [PATCH] [FIX] order of surplus invoices --- controllers/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/main.py b/controllers/main.py index 799685a..6943867 100644 --- a/controllers/main.py +++ b/controllers/main.py @@ -60,7 +60,9 @@ class PortalAccount(PortalAccount): ] ) domain = expression.AND([domain, subdomain]) - values["invoices_surplus"] = request.env["account.move"].sudo().search(domain) + values["invoices_surplus"] = ( + request.env["account.move"].sudo().search(domain, order=order) + ) return values @http.route( -- GitLab