|
@ -1,10 +1,12 @@ |
|
|
odoo.define('web.web_action_conditionable', function (require) { |
|
|
|
|
|
|
|
|
/*global openerp, _, $ */ |
|
|
|
|
|
odoo.define('web_action_conditionable', function(require){ |
|
|
"use strict"; |
|
|
"use strict"; |
|
|
|
|
|
|
|
|
var View = require('web.View'); |
|
|
|
|
|
|
|
|
var View = require('web.view'); |
|
|
|
|
|
|
|
|
View.include({ |
|
|
View.include({ |
|
|
is_action_enabled: function(action) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
is_action_enabled: function(action){ |
|
|
var attrs = this.fields_view.arch.attrs; |
|
|
var attrs = this.fields_view.arch.attrs; |
|
|
if (action in attrs) { |
|
|
if (action in attrs) { |
|
|
try { |
|
|
try { |
|
@ -20,5 +22,6 @@ odoo.define('web.web_action_conditionable', function (require) { |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |