From b08312b010ad1553c83ebaf75cac9f5f480415ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Tue, 27 Apr 2021 07:06:31 +0100 Subject: [PATCH] [FIX] account_financial_reporting: Pass res_id correctly to lines In the open items ledger, the res_id attribute of the invoice in the report was getting: (id, move_name) The result was that, when clicking the line, it would redirect to a new record, instead of the existing. This passes only the id to the line, solving that issue. TT29371 --- account_financial_report/report/open_items.py | 1 + account_financial_report/report/templates/open_items.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/account_financial_report/report/open_items.py b/account_financial_report/report/open_items.py index 52c7d985..d19ac529 100644 --- a/account_financial_report/report/open_items.py +++ b/account_financial_report/report/open_items.py @@ -151,6 +151,7 @@ class OpenItemsReport(models.AbstractModel): "ref_label": ref_label, "journal_id": move_line["journal_id"][0], "move_name": move_line["move_id"][1], + "entry_id": move_line["move_id"][0], "currency_id": move_line["currency_id"][0] if move_line["currency_id"] else False, diff --git a/account_financial_report/report/templates/open_items.xml b/account_financial_report/report/templates/open_items.xml index 7bb652fd..f0270733 100644 --- a/account_financial_report/report/templates/open_items.xml +++ b/account_financial_report/report/templates/open_items.xml @@ -177,7 +177,7 @@