From 052dcd3ee8d48ffa1da0579a650065f3ff07e312 Mon Sep 17 00:00:00 2001 From: Foram Shah Date: Wed, 8 Jun 2016 17:53:22 +0530 Subject: [IMP] web: 'Not Archived' becomes 'Active', 'Not published' becomes 'Unpublished' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- addons/website_rating_project_issue/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/website_rating_project_issue/controllers/main.py') diff --git a/addons/website_rating_project_issue/controllers/main.py b/addons/website_rating_project_issue/controllers/main.py index b0dfba4e42c..9d1bbb58d61 100644 --- a/addons/website_rating_project_issue/controllers/main.py +++ b/addons/website_rating_project_issue/controllers/main.py @@ -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)]) -- cgit v1.2.3