[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:
niv-openerp 2011-09-12 15:20:00 +02:00
parent 9112bdc880
commit 06d80b1d4e
1 changed files with 1 additions and 0 deletions

View File

@ -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);