summaryrefslogtreecommitdiff
path: root/addons/project/controllers/rating.py
AgeCommit message (Collapse)Author
2020-05-08[IMP] customer ratings flow improvementsBenjamin Frantzen (bfr)
- Rename the 'Use Rating on Project' feature into 'Customer Ratings' - Rename the 'Set Email Template to Stages' link to 'Set a Rating Email Template on Stages' - Add an optional list view for the Stages menu - display warning if the rating_template_id field is set and if one of the selected project_ids doesn't have the rating_status field set to true - Project form view revamp - rename the '% on tasks' stat button into 'Customer Satisfaction' - Remove the 'no option' for the rating frequency field because it is required - project form : Add a 'Go to Website' stat button - Project dashboard: remove the 'Customer Ratings' menu item in more - Ratings page: the 'Last 30 days' filter include ratings from today - remove the Appointment / Helpdesk Customer Satisfaction / Live Support menu items TASK ID : 1251
2019-11-19[REF] rating, various: improve rating.rating ACLsryv-odoo
PURPOSE Rating model should be available only for internal users. External users access them only through dedicated routes or controllers using sudo and/or granting access through tokens. Therefore simplifying ACLs should be feasible. SPECIFICATIONS Remove access to rating.rating for public and portal users. Only employees can access it, with full access given to system admins. Update various functional flows to use sudo() and check that access is verified before using sudo. Impacted modules * rating / mail: add groups on some rating related fields as only internal users should access them now; * rating / mail: set some statistics fields using compute_sudo as their value should be accessible for external people even without access to the underlying rating.rating records; * project: makes some use of rating and has to be updated, notably for the public rating page; * website_{livechat, rating, slides}: add sudo in public routes as access is already granted; * website_slides: set statistics field using compute_sudo as their value should be accessible for external people; TASK ID 2053096 PR #36592 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-28[IMP] website*: clean sitemapJeremy Kersten
From now, you need to explicitely add sitemap=True if you want your controller into the sitemap. It's the default value, but if you forgot it, it will raise a Warning on runbot. It will avoid wrong controller in sitemap and duplicate (empty) content. From now, if your model contains a field website_id, the modelConverter for sitemap will automatically add the domain: "[('website_id', 'in', (False, current_website_id))]" It avoid redundant declaration and ugly url in redirect/rewrite view. Migration: need to remove it from url_from in website.rewrite task-2065018 closes odoo/odoo#39427 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-10-18[FIX] website,*: remove useless route from sitemapJeremy Kersten
preparation for cleaning of v13 task-2065018 closes odoo/odoo#39051 X-original-commit: 8a0fc6476c70a4126043de3b3efbd1096e41f968 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-07-04[FIX] *: sudo() -> with_user()Raphael Collet
2019-02-01[FIX] project, rating: use rating last update to compute satisfaction percentageNans Lefebvre
The function _compute_parent_rating_percentage_satisfaction used the creation date of the rating to compute the percentage. However when a client give a new rating, it updates the old one. As a result it doesn't give the recent satisfaction percentage, but the satisfaction percentage of recently created tickets. In other words recently angry clients from old projects would not appear. Similarly this method is somewhat reimplemented directly in SQL in the rating route, which happens to be in the project controller. opw 1921486 closes odoo/odoo#30752
2018-08-24[FIX] project: fix sql injection in rating public controllerPragya ladda
2017-12-12[REM] website_rating_project: move feature in projectJérome Maes
Displaying the rating of project is moved directly in project module, since it does not depends on website. User may want to display rating of its support project even without website.