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.


infinity looping on wizard creation

willie ho
on 12/13/15, 10:08 PM 228 views

i made a wizard that has one2many field and many2one field that target self

when I save the form, the create function looped. If I cancel the create function, the form won't close after Pressing the save button.

what should i do?


  'lines': fields.one2many('template', 'parent_id', 'Lines'),

'parent_id': fields.many2one('template', 'Parent', ondelete='cascade', select=True),


 def save(self, cr, uid, data, context=None):


return {

'type': 'ir.actions.act_window_close',

'tag': 'reload',


def create(self, cr, uid, vals, context=None):


return 1

Sairam Bandaru
On 12/14/15, 2:31 AM

Try once by return  super in create method you inherited 

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: 12/13/15, 10:08 PM
Seen: 228 times
Last updated: 12/14/15, 2:31 AM