From 882caa60a333db038df23609bfc1760f89b5b2b4 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Tue, 7 Nov 2023 15:02:24 +0530 Subject: [PATCH] [FIX] mrp_account: fix traceback when we print WIP Report with multi lines Steps: - Install mrp_account and hr_timesheet modules - Got to timesheet > my timesheet list view - Select multi timesheet (AAL with different AA) - Click on print action - Print WIP report Current behavior: The WIP report currently assumed the AALs selected are linked to the same AA and use the name of the AA to complete the title of that pdf report. But since it is not really the case, all the time since it depends on the user selection then the user could get a traceback without knowing why and could think that report does not work when many AALs are selected. Solution: If many AA are contained then map the names and join the name with `, ` to display the name of each AA in the title of that report. task-3465424 x-Original-commit=https://github.com/odoo/odoo/pull/132005/commits/4256ea305e1388ff6e39e936c2a864c6579e7e0d Part-of: odoo/odoo#145597 --- addons/mrp_account/report/report_mrp_templates.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mrp_account/report/report_mrp_templates.xml b/addons/mrp_account/report/report_mrp_templates.xml index 406ef3d236a..1c467a98654 100644 --- a/addons/mrp_account/report/report_mrp_templates.xml +++ b/addons/mrp_account/report/report_mrp_templates.xml @@ -9,7 +9,9 @@

- WIP Report for Acme Corp. + WIP Report for + Acme Corp. +