Browse Source

Merge pull request #543 from acsone/9.0-fix_open_many2many_open_badge_function_zak

[9.0][FIX]web_m2x_options: s/ev.handleObj.selector/currentTarget
pull/554/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
a4c70c8157
  1. 2
      web_m2x_options/static/src/js/form.js

2
web_m2x_options/static/src/js/form.js

@ -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,

Loading…
Cancel
Save