Description of the issue/feature this PR addresses: When selecting the "group by date" option in the timesheet portal view, a traceback error occurs. Fix: This PR addresses the traceback error by improving the handling of recordsets when grouping by date. task:3468392 closes odoo/odoo#145854 X-original-commit: f244a0685ceeff24edd4b6ab4a2213298dbf8621 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>