El 01/12/17 a les 11:42, Khurram Shahzad ha escrit:

It is not working and throwing keyError. Any ideas on how to set default values 
for wizard from xml file?
You can't. You should define a python code that set the default values of your StateViews by using a default_<field> method. This method can return values from the context if you want.

Additionally, you can set the default values of a transition, by setting the default_<transition> method on the wizard. This method can read values from previous wizard steps. See [1] for an example.

Hope it helps.

[1] http://hg.tryton.org/modules/account/file/e1457237de9e/account.py#l2128

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/a23bca1f-a10c-2386-182f-018878c9c0e1%40koolpi.com.

Reply via email to