From 414126e7240ba920c28232d9bf16647897dc4846 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 17 Oct 2011 09:24:01 +0200 Subject: [PATCH] [FIX] handle common case where action_data has no context, and should not be added to the compoundcontext issue introduced in revision xmo@openerp.com-20111014122020-n3uz31ilemt1lvro bzr revid: xmo@openerp.com-20111017072401-qfreccymm5bn0g4s --- addons/web/static/src/js/views.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 0ec286fa357..a12b30f0380 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -859,10 +859,14 @@ db.web.View = db.web.Widget.extend(/** @lends db.web.View# */{ }], domains: [] }).pipe(function (results) { - action.context = new db.web.CompoundContext( - results.context, action_data.context); + if (!action_data.context) { + action.context = results.context + } else { + action.context = new db.web.CompoundContext( + results.context, action_data.context); + } return self.do_action(action, result_handler); - }); + }, null); } else { return result_handler(); }