18.0-project-average-acceptable-time-portal-fix #36

Merged
stephansainleger merged 2 commits from 18.0-project-average-acceptable-time-portal-fix into 18.0 2026-11-09 15:48:09 +00:00
Showing only changes of commit 533e12d376 - Show all commits

View File

@@ -22,9 +22,8 @@ class CustomCustomerPortal(CustomerPortal):
# project.project, and no read access on its default project # project.project, and no read access on its default project
# unless it follows it # unless it follows it
project_sudo = request.env.user.sudo().default_project_id project_sudo = request.env.user.sudo().default_project_id
if project_sudo and post.get("average_acceptable_time"): average_acceptable_time = post.get("average_acceptable_time")
project_sudo.average_acceptable_time = post[ if project_sudo and average_acceptable_time:
"average_acceptable_time" project_sudo.average_acceptable_time = average_acceptable_time
]
return response return response