[FIX] Add dataset context to action executor for buttons
bzr revid: fme@openerp.com-20110627165752-0saluid6q3qu7sgt
This commit is contained in:
@@ -418,6 +418,7 @@ openerp.base.View = openerp.base.Controller.extend({
|
||||
action.context['active_id'] = dataset.ids[dataset.index];
|
||||
action.context['active_ids'] = [dataset.ids[dataset.index]];
|
||||
action.context['active_model'] = dataset.model;
|
||||
_.extend(action.context, dataset.context);
|
||||
action.flags = {
|
||||
sidebar : false,
|
||||
search_view : false,
|
||||
|
||||
Reference in New Issue
Block a user