From 82fdeb62b5fbf2f71541280f825cb97fe0ffdcd6 Mon Sep 17 00:00:00 2001 From: "Michael (mcm)" Date: Tue, 10 Oct 2023 12:03:00 +0200 Subject: [PATCH] [IMP] calendar view: update attributes This commit renames the calendar attribute "quick_add" to "quick_create" and adds the attribute "quick_create_view_id". closes odoo/documentation#6105 Signed-off-by: Victor Feyens (vfe) --- .../developer/reference/user_interface/view_architecture.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/developer/reference/user_interface/view_architecture.rst b/content/developer/reference/user_interface/view_architecture.rst index bb707acc8..71f1d4a54 100644 --- a/content/developer/reference/user_interface/view_architecture.rst +++ b/content/developer/reference/user_interface/view_architecture.rst @@ -3159,11 +3159,14 @@ calendar view are: If the option 'event_open_popup' is set to true, then the calendar view will open events (or records) in a FormViewDialog. Otherwise, it will open events in a new form view (with a do_action) -``quick_add`` +``quick_create`` enables quick-event creation on click: only asks the user for a ``name`` (the field to which this values is saved can be controlled through ``rec_name``) and tries to create a new event with just that and the clicked event time. Falls back to a full form dialog if the quick creation fails +``quick_create_view_id`` + View to open when the attribute ``quick_create`` is set and the user creates + an event instead of the default dialog. ``create_name_field`` name of the record's field holding the textual representation of the record, this is used when creating records through the 'quick create' mechanism