[FIX] don't send a domain called 'false' if the action has no domain...

bzr revid: xmo@openerp.com-20110412074529-ganfpzhailq2k1zs
This commit is contained in:
Xavier Morel
2011-04-12 09:45:29 +02:00
parent ef9880931c
commit fa02db060d
+6
View File
@@ -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];
}
});