Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How do I programatically click the Create button in my Wizard?

on 2/18/16, 11:45 AM 355 views


I have a form (wizard) that contains default information.

I would like to execute this form automatically by clicking the Create button..

Need help, thanks for advance.


Jignesh Mehta

--Jignesh Mehta--
| 6 4 8
Surat, India
--Jignesh Mehta--

Jignesh Mehta
On 2/18/16, 10:52 PM

Hello Tansadio,

For this scenario, you override the create method.

Try this :-


def create(self, vals):

    result = super(model_name, self).create(vals)

     return {            

            'name': _('Wizard String'),

            'type': 'ir.actions.act_window',

            'res_model': 'custom.wiz',

            'view_type': 'form',

            'view_mode': 'form',

            'target': 'new',


Hope, it works for you.


Thnks Mehta, Your answer is very helpful

on 2/19/16, 10:11 AM
On 2/19/16, 5:49 AM

This is the code i used.


<data noupdate="1">

<record id="ir_cron_scheduler_mass_allocation_action" model="ir.cron">

<field name="name">Masse allocation attribution scheduler</field>

<field name="user_id" ref="base.user_root"/>

<field name="interval_number">2</field>

<field name="interval_type">minutes</field>

<field name="numbercall">-1</field>

<field eval="False" name="doall"/>

<field eval="'hr.holidays.mass.allocation'" name="model"/>

<field eval="'create'" name="function"/>




So, When i performed this code, i see errors about arguments.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 2/18/16, 11:45 AM
Seen: 355 times
Last updated: 2/19/16, 5:49 AM