Sunday, 17 July 2016

How to Call Wizard from XML Button Odoo

Hello world. Wizard is important if you want to develop odoo, wizard is something like pop up will show when you have action. With wizard you can make form or just information that you want to show. Okay, at first i wanna show you how to call wizard form xml button. And the next i will show you how to make wizard in odoo. Lets make it happen.

This is my code for call wizard from button.

<button
       type="action"
       name="%(split_wo.action_view_wizard)d"
       string="Finished"
       class="oe_highlight"
       help="Finish Order"/>

in this code the important is name, as you can se split_wo.action_view_wizard, so split_wo is module where is the wizard, and action_view_wizard is name of the wizard. Simple right? that's it. So if you have question, you can write comment bellow, don't worry i will help you if i can. I hope this is can help you for little bit. lol
Share:
Lokasi: Semarang, Semarang City, Central Java, Indonesia

5 comments:

  1. What if the wizard is in a folder inside the module, like module/wizard_folder/wizard

    ReplyDelete
    Replies
    1. That's fine, just call it and make sure you declare you wizard model on the __open_erp.py file, and your wizard model will be create on module.

      Delete
  2. when i use this to launch a wizard with a button i ge this errror
    "AttributeError: type object 'intempus.description' has no attribute '357'"

    ReplyDelete
  3. Nice article! Very informative blog. Looking for the best VR App Development Company in Australia? Reach IDYA Technology.

    ReplyDelete


<br>


Advice for contacting me at dedyy54@gmail.com