mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
web_m2x_options: s/ev.handleObj.selector/currentTarget * many2many with options={'open': True} it always open the first element with this fix it will open the right one
This commit is contained in:
committed by
Pedro M. Baeza
parent
a266e6c5e6
commit
c5f66320ef
@@ -412,7 +412,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
|
||||
var open = (self.options && self.is_option_set(self.options.open));
|
||||
if(open){
|
||||
self.mutex.exec(function(){
|
||||
var id = parseInt($(ev.handleObj.selector).attr('data-id'));
|
||||
var id = parseInt($(ev.currentTarget).data('id'));
|
||||
self.do_action({
|
||||
type: 'ir.actions.act_window',
|
||||
res_model: self.field.relation,
|
||||
|
||||
Reference in New Issue
Block a user