diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-12 15:20:00 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-12 15:20:00 +0200 |
| commit | 06d80b1d4eeff8ae9c18a2d2f56ba2dc48623fde (patch) | |
| tree | 8ae57af6e6cd4e4d97900141ad88470405a07f61 /addons | |
| parent | 9112bdc880587c03c88d3c80d7af6d02e3619e3e (diff) | |
[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
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/src/js/views.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 72cc8123d69..c4309a42e38 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -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); |
