[FIX] web: reset active_model, id, ids on executing button of type object

bzr revid: dle@openerp.com-20140430123727-cnz6k8is2sqe65w0
This commit is contained in:
Denis Ledoux 2014-04-30 14:37:27 +02:00
parent c3e812f34a
commit 8d49639933
1 changed files with 1 additions and 0 deletions

View File

@ -1443,6 +1443,7 @@ instance.web.View = instance.web.Widget.extend({
console.error("Could not JSON.parse arguments", action_data.args);
}
}
context.add({'active_model': dataset.model, 'active_ids': [record_id], 'active_id': record_id})
args.push(context);
return dataset.call_button(action_data.name, args).then(handler).then(function () {
if (instance.webclient) {