3
0
Fork 0

Use super to allow better future hacking

9.0
Cristian Salamea 2015-08-17 18:25:24 -05:00
parent 76822f22ee
commit 64551293c5
1 changed files with 1 additions and 2 deletions

View File

@ -6,8 +6,7 @@ openerp.web_action_conditionable = function (instance) {
var attrs = this.fields_view.arch.attrs;
if (action in attrs) {
try {
data = JSON.parse(attrs[action]);
return data;
return this._super(action);
} catch(error) {
var expr = attrs[action];
var expression = py.parse(py.tokenize(expr));