From 8a2bfb851a9a5102775ad3919e8e31bd96119c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roc=C3=ADo=20Vega?= Date: Fri, 27 Dec 2024 16:02:15 -0300 Subject: [PATCH] [WIP] --- account_currency_reports_ux/monkey_patches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_currency_reports_ux/monkey_patches.py b/account_currency_reports_ux/monkey_patches.py index 36bd5aee5..9f900f234 100644 --- a/account_currency_reports_ux/monkey_patches.py +++ b/account_currency_reports_ux/monkey_patches.py @@ -16,11 +16,11 @@ def _select_patch(self): (SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND - (r2.company_id is null or r2.company_id = c.id) + (r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r - JOIN res_company c ON (r.company_id is null or r.company_id = c.id) + JOIN res_company c ON (r.company_id = c.id) WHERE c.id = %s ) SELECT