Tuesday, 9 August 2011

Making Wizard

Wizards describe interaction sequences between the client and the server.
A wizard is a succession of steps. A step is composed of several actions;
1. send a form to the client and some buttons
2. get the form result and the button pressed from the client
3. execute some actions
4. send a new action to the client (form, print, ...)

Specifically, wizards can be created just like normal forms, here i am telling the easiest way to experience it all you have to do is to make your python class inherited from (osv.osv_memory) declare all the fields normally as you do.
In the xml where you defined the action for the form just add
<field name="target">new</field>
it will open the wizard in a new window.

Mind it there is another way of creating wizards that use wizard.interface
which i will cover later

No comments:

Post a Comment