Purpose: For our internal project management, we would like to track the customer satisfaction on the open projects. We send them an email every one or 2 weeks allowing them to give a feedback by clicking on one of 3 smileys: Happy, Average, Angry. They can also put a additional explanation. We already have something similar which is working on livechat with a unusable reporting, and on issues but unusable. Our project are managed by tasks. Specification: - On the project : Selection fields : (Periodical Rating or Rating on Stage) + Fields to choose the period if periodical - On the stage : email_template_id field. - IF : ---> Periodical : Send an email to all the customers for the tasks on this stage periodically ---> On Stage : Send an email to the customer's tasks when the task reaches the stage - That way, it's impossible to send a satisfaction request both periodically and sequentially. FP request - Who is the customer : The customer on the task OR the customer on the related sales order OR the customer on the projet OR nobody - The last feedback is displayed on the task kanban card (Thumb up, down, or neutral) - On the project kanban card, the customer satisfaction is displayed. This is the simple mean of all the previous ratings.
20 lines
829 B
Python
20 lines
829 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from openerp import models, fields
|
|
|
|
class ProjectIssueConfiguration(models.TransientModel):
|
|
_inherit = 'project.config.settings'
|
|
|
|
module_project_issue_sheet = fields.Selection([
|
|
(0, "Do not track working hours on issues"),
|
|
(1, "Activate timesheets on issues")
|
|
], string="Timesheets on Issues",
|
|
help='Provides timesheet support for the issues/bugs management in project.\n'
|
|
'-This installs the module project_issue_sheet.')
|
|
module_rating_project_issue = fields.Selection([
|
|
(0, "No customer rating"),
|
|
(1, 'Track customer satisfaction on issues')
|
|
], "Rating on issue",
|
|
help="This allows customers to give rating on issue")
|