Files
odoo_source/addons/mrp_account/report
Prakash Prajapati 882caa60a3 [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
2023-12-12 23:08:49 +00:00
..