[imp] added context propagation when an action is triggered by a button to match behavior of gtk client
bzr revid: nicolas.vanhoren@openerp.com-20110912132000-ibzm0fepg5p4o4ag
This commit is contained in:
parent
9112bdc880
commit
06d80b1d4e
|
@ -671,6 +671,7 @@ openerp.web.View = openerp.web.Widget.extend(/** @lends openerp.web.View# */{
|
|||
active_ids: [record_id || false],
|
||||
active_model: dataset.model
|
||||
});
|
||||
action.context = new openerp.web.CompoundContext(dataset.get_context(), action.context);
|
||||
self.do_action(action, on_closed);
|
||||
} else if (on_closed) {
|
||||
on_closed(action);
|
||||
|
|
Loading…
Reference in New Issue