Hello.
We are developing some features that require call a windows action with an specific id, somebody can share an specific snnipet with this?.
We read the code and we found this:
on_edit_help: function() {
var self = this;
self.rpc("/web/action/load", { action_id: "module_name.action_object_tree" }).done(function(result) {
self.getParent().do_action(result, {
additional_context: {
//HERE WE ARE TRYING SOME OPTIONS.
},
});
});
},
This snnipet is in a widget inside openerp, and we set a DOM element with the "click" method calling this function, the function is being called actually, no problem with that.
OPTIONS USED:
'active_id': KnownId, //Not Work, 'active_id': [KnownId], //Not Work. 'search_default_FIELD': It is not working.
We think it is a matter of the field in the SEARCH view, we tryed too, but the search is filled and the filter is not excecuted.
Question, Am i doing something wrong or it is a bug, the API should work in this way?
We tryied other option,. Build dinamically the action:
var action = {
//Parameters
}
But the effect is exactly the same.
Some Help?
If somebody can share with me what module do this exactly, i can copy the code, but all options in OpenERP actually are solved in differents way.
Basically the question is:
How do i call an existent view in OpenERP with a customized link from JavaScript?
Limitant: I dont want to use a Menu, because the behavior is so especific.
Regards.