The following javascript code opens a new page with the click event.How to change the code for a new dialog box popup of the same target form?
_onInfoBoxClicked: function (event) {
if (!$(event.target).prop('special_click')) {
var id = $(event.currentTarget).data('id');
var ids = $(event.currentTarget).data('ids');
if (id) {
this.trigger_up('open_record',{id: id, target: event.target});
}
else if (ids.length){
this.trigger_up('search', {
domains: [[['id', 'in', ids]]],
contexts: [],
groupbys: [],
});
}
}
},
i have updated my answer, you can inherit js and do it.