From ab0e242bc2933bb97c3ba003237635e142bf8c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 31 Jan 2014 22:29:01 +0100 Subject: [PATCH] Fix documentation about button name review3011004 --- doc/topics/views/index.rst | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/topics/views/index.rst b/doc/topics/views/index.rst index 1b1ff009bb..bf9da749b7 100644 --- a/doc/topics/views/index.rst +++ b/doc/topics/views/index.rst @@ -303,14 +303,10 @@ Display a button. * ``string``: The string that will be displayed inside the button. - * ``name``: The name of the action: + * ``name``: The name of the function that will be called. The function must + have this syntax: - * ``object``: the name of the function that will called. The function - must have this syntax: - - ``button(self, ids)`` - - * ``action``: the id of the ir.action that will be called. + ``button(cls, records)`` * ``icon``