Remove duplicate button attributes and move warning at the end

This commit is contained in:
Cédric Krier
2019-07-17 21:15:37 +02:00
parent a8aea29de2
commit d00e1bb00a
+7 -10
View File
@@ -345,16 +345,6 @@ Display a button.
The function may return an `ir.action` id or one of those client side
action keywords:
* ``string``: The string that will be displayed inside the button.
* ``confirm``: A string that will be shown in order to request
confirmation when clicking the button.
* ``help``: see in common-attributes-help_.
The button should be registered on ``ir.model.button`` where the default value
of the ``string``, ``confirm`` and ``help`` attributes can be can be defined.
.. _topics-views-client-actions:
* ``new``: to create a new record
@@ -384,6 +374,13 @@ of the ``string``, ``confirm`` and ``help`` attributes can be can be defined.
toolbar. The valid values are the keywords starting with `form_` from
:ref:`Actions <topics-actions>` without the `form_` part.
.. warning::
The button should be registered on ``ir.model.button`` where the default
value of the ``string``, ``confirm`` and ``help`` attributes can be can be
defined.
notebook
^^^^^^^^