From b56025dff25be70d768aaf3bbafdccb6a9b147ef Mon Sep 17 00:00:00 2001 From: Munaf Khan Date: Thu, 9 Sep 2021 12:55:45 +0000 Subject: [PATCH] [IMP] website_event_track: add quick create form view for tracks Currently, while creating tracks on the fly from an event, we can simply set the name, which is not enough, we should also be able to set date, and display proper placeholder for the name field. This commit add a new quick create form view for the track kanban view, so that user can simply choose the track name and date and can simply add tracks on the fly. Note that it is mandatory to set event on the track. If we are within an event, the default event is already available in context so we don't display it while adding a track within an event. But we are not within an event, we simply display 'event_id' on quick create card so that use can select an event and create track on the fly. TaskId-2635390 closes odoo/odoo#76250 Signed-off-by: Thibault Delavallee (tde) --- .../views/event_track_views.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/addons/website_event_track/views/event_track_views.xml b/addons/website_event_track/views/event_track_views.xml index bd509a49dbe..ce35528fbb1 100644 --- a/addons/website_event_track/views/event_track_views.xml +++ b/addons/website_event_track/views/event_track_views.xml @@ -12,11 +12,26 @@ + + event.track.view.form.quick.create + event.track + 1000 + +
+ + + + + +
+
+
+ event.track.kanban event.track - +