[FIX] project: display rating average percentage
This commit display rating average percentage in project update right side panel view's rating stat button instead of just displaying rating_avg_percentange field's value. task-2732325 closes odoo/odoo#82859 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
@@ -767,7 +767,7 @@ class Project(models.Model):
|
||||
buttons.append({
|
||||
'icon': 'smile-o',
|
||||
'text': _('Satisfaction'),
|
||||
'number': f'{self.rating_avg_percentage} %',
|
||||
'number': f'{round(100 * self.rating_avg_percentage, 2)} %',
|
||||
'action_type': 'object',
|
||||
'action': 'action_view_all_rating',
|
||||
'show': self.rating_active and self.rating_count > 0,
|
||||
|
||||
Reference in New Issue
Block a user