From 59afe32b76fa5847198bf42f144c2087630bfe6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 20 Dec 2014 16:14:04 +0100 Subject: [PATCH] Add documentation about default_ method on Wizard review9941002 --- doc/ref/wizard.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/ref/wizard.rst b/doc/ref/wizard.rst index ff3cc0f451..a8944eee31 100644 --- a/doc/ref/wizard.rst +++ b/doc/ref/wizard.rst @@ -99,6 +99,8 @@ StateView A :class:`StateView` is a state that will display a form in the client. The form is defined by the :class:`~trytond.model.ModelView` with the name `model_name`, the `XML` id in `view` and the `buttons`. + The default value of the view can be set with a method on wizard having the + same name as the state but starting with `default_`. Instance attributes are: