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
Odoo Training Center
|Asked: 7/15/16, 6:38 AM|
|Seen: 1097 times|
|Last updated: 7/16/16, 12:51 AM|