From fa02db060dde1e1fd5fbf8dbc8a7c737e2870467 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 12 Apr 2011 09:45:29 +0200 Subject: [PATCH] [FIX] don't send a domain called 'false' if the action has no domain... bzr revid: xmo@openerp.com-20110412074529-ganfpzhailq2k1zs --- addons/base/static/src/js/views.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/base/static/src/js/views.js b/addons/base/static/src/js/views.js index e4deb375a55..74e058c2c79 100644 --- a/addons/base/static/src/js/views.js +++ b/addons/base/static/src/js/views.js @@ -201,6 +201,9 @@ openerp.base.ViewManagerAction = openerp.base.ViewManager.extend({ * @returns the action's domain */ domains: function () { + if (!this.action.domain) { + return []; + } return [this.action.domain]; }, /** @@ -209,6 +212,9 @@ openerp.base.ViewManagerAction = openerp.base.ViewManager.extend({ * @returns the action's context */ contexts: function () { + if (!this.action.context) { + return []; + } return [this.action.context]; } });