2013/9/20 Naitik Mehta <[email protected]>: > Hi, > > I am using fields_view_get method for create a dynamic wizard. Dynamic > wizard create successfully but when i try to pop up it, it is generate "KEY > ERROR". Because when pop up the wizard always fields_view_get() method call > default_get() method. As per Tryton architecture i think fields_view_get() > call fields_get() method. > > Any one have solution of this issue that why fields_view_get() call the > default_get() method instead of the fields_get() method?
As the name suggests, default_get() returns the default values of fields. fields_view_get() calls fields_get() but the client calls default_get() too. If you want an example of dynamically generated views you can take a look at this: https://bitbucket.org/nantic/trytond-babi/src/c17241d2369e7912fa047cf2a59cfc7e88fa3222/babi.py?at=default#cl-163 -- Albert Cervera i Areny Consultor funcional Tel. 93 553 18 03 @albertnan www.NaN-tic.com
