From 51d50a1379e2b904bee5b4a429d242863d66a4f6 Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Wed, 25 Aug 2021 08:33:06 +0000 Subject: [PATCH] [IMP] portal_rating: add static star compressed style This commit adds a new template called "Rating: static star compressed widget". Instead, having 5 stars, it returns an empty/half/full star with the average rating. This smaller layout is used in the dynamic snippets product. Adapts the style of empty stars (it uses the outline star icon instead grey background) to work well on light and dark backgrounds. Part of https://github.com/odoo/odoo/pull/75623 task-2602978 X-original-commit: 0690e187ebb7e67694c8236f420213beed29993d Part-of: odoo/odoo#77153 --- .../portal_rating/views/rating_templates.xml | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/addons/portal_rating/views/rating_templates.xml b/addons/portal_rating/views/rating_templates.xml index d565525f5e0..2fcc31e5894 100644 --- a/addons/portal_rating/views/rating_templates.xml +++ b/addons/portal_rating/views/rating_templates.xml @@ -9,18 +9,34 @@
- - + + + + + + + + + + + + + - - + + + + + + + + + + + + () + - - - - - () -