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 want to open view by using the js file,
res = self.pool['ir.model.data'].get_object_reference(cr, uid, 'my_module', 'my_view_id')
I created python function which returns the view, but as I am returning the view it is return to the JS and not opening the view. So, I want to know that how to open this view from the JS. As some tree view are opening in POS using JS but I am not getting how to open Graph view or Form View.
You can call action from js by this way..
But you have created function that return action in python. as you said that function not work properly. So would like to suggest first try to use @api.multi in python function.
Hope this helps.
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: 7/15/16, 6:38 AM|
|Seen: 539 times|
|Last updated: 7/16/16, 12:51 AM|