Browse Source

Use super to allow better future hacking

pull/200/head
Cristian Salamea 9 years ago
parent
commit
64551293c5
  1. 3
      web_action_conditionable/static/src/js/views.js

3
web_action_conditionable/static/src/js/views.js

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

Loading…
Cancel
Save