Wednesday, May 28, 2025
1 change · saas-18.3
Resolved issues and error corrections
This fix prevents an error when portal users open project tasks while the invoicing policy is set to validated timesheets only. It ensures task pages remain accessible in the portal, avoiding a disruptive traceback for customers or external users.
Original PR description
When Invoicing Policy is set to Validated timesheets only, opening tasks in the portal view results in a traceback. Steps to reproduce the error: - Install ``sale_timesheet_enterprise`` - Go to Timesheets > Configuration > Settings > Invoicing Policy: ``Validated timesheets only`` - Switch to Portal View > Open Tasks Traceback: ``` ValueError: Aggregate method is mandatory for 'unit_amount' ``` https://github.com/odoo/enterprise/blob/3cfd66bfaf6a1fd58200b46b0c56330b8d96dcdd/sale_timesheet_enterprise/models/project_task.py#L130 Here, Aggregate method is missing for the ``unit_amount`` field. So, It will lead to the above traceback. sentry-6626038923