From ba4e28aa446332163ced0d39a3d710329e801759 Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 16 Jun 2023 14:02:11 +0200 Subject: [PATCH] [FIX] event_session: Refactor generate_sessions_button_visible to generate_sessions_button_hide --- event_session/models/event.py | 2 +- event_session/wizards/wizard_event_session_view.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/event_session/models/event.py b/event_session/models/event.py index 221ee520a..20408771c 100644 --- a/event_session/models/event.py +++ b/event_session/models/event.py @@ -39,7 +39,7 @@ class EventEvent(models.Model): string=" # No of Confirmed Registrations", store=True, ) - generate_sessions_button_visible = fields.Boolean(related="stage_id.pipe_end") + generate_sessions_button_hide = fields.Boolean(related="stage_id.pipe_end") @api.depends("session_ids") def _compute_sessions_count(self): diff --git a/event_session/wizards/wizard_event_session_view.xml b/event_session/wizards/wizard_event_session_view.xml index 3e2c58e6b..e46088c3e 100644 --- a/event_session/wizards/wizard_event_session_view.xml +++ b/event_session/wizards/wizard_event_session_view.xml @@ -12,12 +12,12 @@ - +