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.
When opening a form from an function returning an action code as in the example below, I was wondering how could I explicitly specify the state of the form, wether it's in edit or browse mode ?
'type': "ir.actions.act_window" 'res_model': 'model' 'view_type': 'form' 'view_mode': 'form' 'target': 'current' 'context': context
I noticed the following:
'target' = 'new'opens in edit mode (as when creating wizards..)
'target' = 'current'opens in browse mode (as in regular form views)
- context does not seem to contain any specific instructions
Thanks for your time. Nicolas
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: 2/27/13, 5:08 AM|
|Seen: 6100 times|
|Last updated: 12/15/16, 10:15 AM|