From 9c5dde8c538adebb13da381e73332b32ffc8e262 Mon Sep 17 00:00:00 2001 From: MaxLarue Date: Mon, 20 May 2019 09:38:55 +0000 Subject: [PATCH] [IMP] base,doc: add on_create and edit attribute on gantt view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit related task #1929079 closes odoo/odoo#33872 Signed-off-by: Jérome Maes (jem) --- doc/reference/views.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 015f12485ef..7b4973cbdbe 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -1318,7 +1318,7 @@ take the following attributes: name of the field that describes if the task has to be excluded from the consolidation if set to true it displays a striped zone in the consolidation line -``create``, ``edit`` +``create``, ``edit``, ``plan`` allows *dis*\ abling the corresponding action in the view by setting the corresponding attribute to ``false``. If ``create`` is enabled, a "+" button will be displayed while hovering each time slot to create a new record in @@ -1392,6 +1392,10 @@ take the following attributes: meta-information. The ``getColor`` method to convert in a color integer is also available directly in the template context without using ``widget``. + ``on_create`` + If specified when clicking the add button on the view, instead of opening a generic dialog, launch a client action. + this should hold the xmlid of the action (eg: ``on_create="%(my_module.my_wizard)d"`` + .. _reference/views/diagram: Diagram