[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user