Hello,

To develop osv_memory wizard, just create a normal object, but instead of 
inheriting from osv.osv, inherit from osv.osv_memory. The method of the 
"wizard" are method on the object and, if the wizard is complex, you can define 
a workflow on this object. It means the object is managed in memory instead of 
storing in postgresql.

That's all, nothing more than just changing the inherit.

So what makes them looks like 'old' wizards ?
* In the action that opens the object, you can put  <field 
name="target">new</field>. It means the object will open in a new window 
instead of the current one.
* On a button, you can use <button special="cancel" .../> that makes the window 
close.

Some remarks:
* If the wizard has different screens, you have different approach:
  - putting all fields in a view but displaying groups/page according to a 
state field (invisible or attrs arguments). Then you just have to write the 
state field of your object to change the view.
  - using several objects for each step
* As a reminder, you can trigger actions that opens object from:
  - buttons in forms/tree
  - menus
  - action in the right toolbar of an obejct (and contextual menu on relation 
field)
  - workflow steps (new in v5)
  - wizards

Of course, you can use this on normal objects or osv.memory objects. You can 
also use the object builder, the view designer or the workflow designer. It 
also works well with the module recorder and the new module builder.

And, if you add server actions in the system, you can customize and build 
wizards without any line of development, just by customization through the user 
interface ! It still has to be documented, but v5.0 will provide really really 
RAD tools.

All new wizards in v5 are implemented using this way. Check, for example, the 
configuration "wizard": addons/profile_service/...




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=27596#27596

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to