mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Use super to allow better future hacking
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user