summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-04-12 09:45:29 +0200
committerXavier Morel <xmo@openerp.com>2011-04-12 09:45:29 +0200
commitfa02db060dde1e1fd5fbf8dbc8a7c737e2870467 (patch)
treeed22e35aeb0e8bae586265239a892535b6fa9325
parentef9880931cb4284258ea2c07f846b6fba0b60794 (diff)
[FIX] don't send a domain called 'false' if the action has no domain...
bzr revid: xmo@openerp.com-20110412074529-ganfpzhailq2k1zs
-rw-r--r--addons/base/static/src/js/views.js6
1 files changed, 6 insertions, 0 deletions
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];
}
});