I have a button opening a window from javascript:
var self=this;
this.$(".oe_write_full").click(function (event) {
event.stopPropagation();
var action = {
type: 'ir.actions.act_window',
res_model: 'mail.compose.message',
view_mode: 'form',
view_type: 'form',
action_from: 'mail.ThreadComposeMessage',
views: [[false, 'form']],
target: 'new',
context: {
},
};
session.client.action_manager.do_action(action);
});
I have two ir.actions.act_window for the same res_model (mail.compose.message).
How can I choose which window open? Can I do it using do_action()?