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 need to make a wizard to edit one2many field.
i made a button to call the wizard to edit the first record but the page will refresh after I save the form.
how can I change the button to reload the wizard but not reloading the page?
from openerp.tools.translate import _
dummy, view_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'your_module_name', 'your_wizard_view_id') #in module name like 'hospital_management' and your_wizard_view_id like 'view_wiz_hospital'
dummy, view_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'hospital_management', 'view_wiz_hospital')
'name':_("Display Name"),#Name You want to display on wizard
'res_model': 'wiz.hospital',# With . Example sale.order
This code may be help for you.
Thanks & Regards,
Ankit H Gandhi
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 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: 11/16/15, 4:47 AM|
|Seen: 397 times|
|Last updated: 11/18/15, 5:33 AM|