From 95698bd408a29cb2ebc4abe0445a4739eceba082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Mon, 23 Oct 2017 16:02:55 +0200 Subject: [REM] rating_project: kill the module and move feature in project Impacted modules: project, rating_project, sale_service_rating and website_rating_project. Removed modules: rating_project and sale_service_rating. Move code to empty 'rating_project' module, in order to kill it. Code is not modified, simply copy/paste at the right place in 'project' module code. However, 'enable rating on task' options is convert into a res.groups that can be activated from the project settings. --- addons/project/data/project_mail_template_data.xml | 85 +++++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) (limited to 'addons/project/data/project_mail_template_data.xml') diff --git a/addons/project/data/project_mail_template_data.xml b/addons/project/data/project_mail_template_data.xml index d33aabf2cd3..808c7d570d6 100644 --- a/addons/project/data/project_mail_template_data.xml +++ b/addons/project/data/project_mail_template_data.xml @@ -109,8 +109,91 @@ + + + + Task: Rating Request + ${object.rating_get_rated_partner_id().email or '' | safe} + ${object.project_id.company_id.name}: Service Rating Request + + ${object.rating_get_partner_id().id} + + + % set access_token = object.rating_get_access_token() + + + + +
+ + + Satisfaction Survey +
+ + + + + + +
+

Hello,

+

Please take a moment to rate our services related to the task "${object.name}" + assigned to ${object.rating_get_rated_partner_id().name}.

+

We appreciate your feedback. It helps us to improve continuously.

+
+ + + + + + + +
+

+ Tell us how you feel about our service: +

+
(click on one of these smileys)
+
+ + + + + + +
+ + Satisfied + + + + Not satisfied + + + + Highly Dissatisfied + +
+
+
${(object.user_id.signature or '')| safe}
+ + + + +
+ % if object.project_id.rating_status == 'stage': +

This customer survey has been sent because your task has been moved to the stage ${object.stage_id.name}

+ % endif + % if object.project_id.rating_status == 'periodic': +

This customer survey is sent ${object.project_id.rating_status_period} as long as the task is in the ${object.stage_id.name} stage.

+ % endif +

Email automatically sent by Odoo Project for ${object.project_id.company_id.name}

+
+ +]]>
+
-- cgit v1.2.3