Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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):
def create(self, cr, uid, vals, context=None):
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/13/15, 10:08 PM|
|Seen: 442 times|
|Last updated: 12/14/15, 2:31 AM|