Skip to content

Commit a4c70c8

Browse files
authored
Merge pull request OCA#543 from acsone/9.0-fix_open_many2many_open_badge_function_zak
[9.0][FIX]web_m2x_options: s/ev.handleObj.selector/currentTarget
2 parents 07768f4 + 9eadf20 commit a4c70c8

File tree

1 file changed

+1
-1
lines changed
  • web_m2x_options/static/src/js

1 file changed

+1
-1
lines changed

web_m2x_options/static/src/js/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
412412
var open = (self.options && self.is_option_set(self.options.open));
413413
if(open){
414414
self.mutex.exec(function(){
415-
var id = parseInt($(ev.handleObj.selector).attr('data-id'));
415+
var id = parseInt($(ev.currentTarget).data('id'));
416416
self.do_action({
417417
type: 'ir.actions.act_window',
418418
res_model: self.field.relation,

0 commit comments

Comments
 (0)