summaryrefslogtreecommitdiff
path: root/addons/web_kanban/static/src
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2012-09-04 16:11:55 +0200
committerRaphael Collet <rco@openerp.com>2012-09-04 16:11:55 +0200
commit14e87c09f3ecf5cefd9b6d6bcfc6b5efa35e7729 (patch)
treeabe9729d6cdd95f6f6424d3ec30a7775756d4e60 /addons/web_kanban/static/src
parent440b8aabbd9ca0e1928d39207c6ed957fec613c8 (diff)
[IMP] rename method _is_action_enabled to is_action_enabled
bzr revid: rco@openerp.com-20120904141155-288vwhonbt07dfcs
Diffstat (limited to 'addons/web_kanban/static/src')
-rw-r--r--addons/web_kanban/static/src/js/kanban.js4
-rw-r--r--addons/web_kanban/static/src/xml/web_kanban.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js
index 143ff7d685b..cbe88ec847b 100644
--- a/addons/web_kanban/static/src/js/kanban.js
+++ b/addons/web_kanban/static/src/js/kanban.js
@@ -71,7 +71,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
return JSON.parse(this.fields_view.arch.attrs.quick_create);
return !! this.group_by;
},
- _is_action_enabled: function(action) {
+ is_action_enabled: function(action) {
if (action === 'create' && !this.options.creatable)
return false;
return this._super(action);
@@ -735,7 +735,7 @@ instance.web_kanban.KanbanRecord = instance.web.Widget.extend({
var $action = $(this),
type = $action.data('type') || 'button',
method = 'do_action_' + (type === 'action' ? 'object' : type);
- if ((type === 'edit' || type === 'delete') && ! self.view._is_action_enabled(type)) {
+ if ((type === 'edit' || type === 'delete') && ! self.view.is_action_enabled(type)) {
self.view.open_record(self.id);
} else if (_.str.startsWith(type, 'switch_')) {
self.view.do_switch_view(type.substr(7));
diff --git a/addons/web_kanban/static/src/xml/web_kanban.xml b/addons/web_kanban/static/src/xml/web_kanban.xml
index b2f9e757b43..278b9cc02b6 100644
--- a/addons/web_kanban/static/src/xml/web_kanban.xml
+++ b/addons/web_kanban/static/src/xml/web_kanban.xml
@@ -14,7 +14,7 @@
</t>
<div t-name="KanbanView.buttons" class="oe_kanban_buttons">
<t t-if="widget.options.action_buttons !== false">
- <t t-if="widget._is_action_enabled('create')">
+ <t t-if="widget.is_action_enabled('create')">
<button type="button" class="oe_kanban_button_new oe_highlight">
<t t-esc="widget.options.create_text || _t('Create')"/>
</button>