* Raimon Esteve [2013-11-08 18:36 +0100]:
I created one button and I want to show the wizard form when click the
button.

In your button call a ir.action.wizard

Button:

<button name="wizard_add_product" string="_Add Product"
           icon="tryton-list-add"/>

Wizard:

<record model="ir.action.wizard" id="wizard_add_product">
   <field name="name">Add Product</field>
   <field name="wiz_name">sale_pos.add_product</field>
</record>

You could also use the button_action decorator like in:
http://hg.tryton.org/trytond/file/d3d7bfc0e0d6/trytond/ir/ui/view.py#l99
http://doc.tryton.org/3.0/trytond/doc/ref/models/models.html#trytond.model.ModelView.button_action

--
Nicolas Évrard - B2CK SPRL
E-mail/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: signature.asc
Description: Digital signature

Reply via email to