Hello everyone,
In my project, I had to create a web module (initally following the openerp tutorial) to show some specific information, from several different models (like a kanban view with trees inside).
For now, I display this "web view" using a menu, which calls the client action I created for my module, like this :
<menuitem id="main_results_menu" name="Results" /> <menuitem id="result_menu" name="Results" parent="main_results_menu" /> <record id="action_results_show" model="ir.actions.client"> <field name="name">Results</field> <field name="tag">results.result</field> </record> <menuitem id="result_menu_show" name="Show results" parent="result_menu" action="action_results_show"/>
In my client code, I add the client action like this :
instance.web.client_actions.add('results.result', 'instance.rip.ResultsView');
Everything works fine, but the final goal is to present my "web view" after I execute some python code from a button in a classic form view.
The button executes some searches, then should show my view. I tried this, but I get an error ("Action manager can't handle action of type ir.action.client")
res = { 'type': 'ir.action.client', 'name':'Résultats', 'tag':'results.result', } return res
Is there any way to achieve this ?
Thank you !
Any success with this yet? I'm running across the same problem.