summaryrefslogtreecommitdiff
path: root/addons/base/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/base/static/src')
-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];
}
});