From bf0bb8497e50e51b9caaee97a32624a08fc1b68b Mon Sep 17 00:00:00 2001 From: ijas ahammed Date: Thu, 21 Oct 2021 09:05:00 +0000 Subject: [PATCH] [IMP] event,website_event_questions: improve attendees list view In this commit we have improved the attendees list view, changes done are listed below, - We have changed the cancel button color to red in attendees list view. - We have added badge widget for the state field in attendees list view, the following states uses these colors, - draft - blue - cancel - grey - open - blue - done - green - We have added a `activity_ids` before the field `state` field in attendees list view. - We have added the field `registration_answer_ids` with `many2many_tags` and default hide in attendees list view just before the status field. TaskID-2670765 Part-of: odoo/odoo#79166 --- addons/event/static/src/scss/event.scss | 9 +++++++++ addons/event/views/event_views.xml | 9 +++++++-- .../models/event_registration.py | 9 +++++++++ .../views/event_registration_views.xml | 11 +++++++++++ 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/addons/event/static/src/scss/event.scss b/addons/event/static/src/scss/event.scss index ec8ff7be2d0..703f90377e8 100644 --- a/addons/event/static/src/scss/event.scss +++ b/addons/event/static/src/scss/event.scss @@ -24,3 +24,12 @@ } } } + +.o_event_registration_view_tree { + .o_list_button > .o_btn_cancel_registration { + color: $danger; + &:hover { + color: darken($danger, $emphasized-link-hover-darken-percentage); + } + } +} diff --git a/addons/event/views/event_views.xml b/addons/event/views/event_views.xml index cd0d9c120d3..43ac6d86222 100644 --- a/addons/event/views/event_views.xml +++ b/addons/event/views/event_views.xml @@ -510,12 +510,17 @@ - + +