[FIX] account_financial_report: allow navigation on all fields

Pass res_id correctly to lines to allow navigation on the fields

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.

Fix menu item name

TT29371
This commit is contained in:
João Marques
2021-04-27 07:06:31 +01:00
committed by chaule97
parent 970f614aac
commit 0abfff7f16
3 changed files with 25 additions and 6 deletions

View File

@@ -278,6 +278,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,