[IMP] web: 'Not Archived' becomes 'Active', 'Not published' becomes 'Unpublished'
Another reason why it’s better to change ‘not archived’ into ‘active’ is because ‘active’ is the functional name of this field in the filter list in list view. For the rest, it’s just a better en_US way of saying it.
This commit is contained in:
committed by
Yannick Tivisse
parent
78b52fb637
commit
052dcd3ee8
@@ -20,7 +20,7 @@ class WebsiteRatingProject(http.Controller):
|
||||
user = request.env.user
|
||||
project = request.env['project.project'].sudo().browse(project_id)
|
||||
# to avoid giving any access rights on projects to the public user, let's use sudo
|
||||
# and check if the user should be able to view the project (project managers only if it's not published or has no rating)
|
||||
# and check if the user should be able to view the project (project managers only if it's unpublished or has no rating)
|
||||
if not (project.is_visible_happy_customer and project.website_published) and not user.sudo(user).has_group('project.group_project_manager'):
|
||||
raise NotFound()
|
||||
issues = request.env['project.issue'].sudo().search([('project_id', '=', project.id)])
|
||||
|
||||
Reference in New Issue
Block a user