This question has been flagged
2253 Views

Hello

How do i call an existent view in OpenERP from JavaScript?

I already tried this :

self.rpc("/web/action/load", { action_id: "module.action_view_id" }).done(function(result) {

                        result.view_mode='tree';
                        result.target="new";

                        self.getParent().do_action(result, {                                                                                      
                            additional_context: {                                          
                            },                                                         
                        });

it works, but whenever i click on a record it brings me the form of that record, and that's not what i want. I need something like in this video on youtube /watch?v=YVqKrH1GnyA

thank you in advance.

Avatar
Discard