summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_list.js
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/static/src/js/view_list.js
parent440b8aabbd9ca0e1928d39207c6ed957fec613c8 (diff)
[IMP] rename method _is_action_enabled to is_action_enabled
bzr revid: rco@openerp.com-20120904141155-288vwhonbt07dfcs
Diffstat (limited to 'addons/web/static/src/js/view_list.js')
-rw-r--r--addons/web/static/src/js/view_list.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js
index 06d2548339c..da806f415cf 100644
--- a/addons/web/static/src/js/view_list.js
+++ b/addons/web/static/src/js/view_list.js
@@ -252,13 +252,13 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
this.$el.addClass(this.fields_view.arch.attrs['class']);
// add css classes that reflect the (absence of) access rights
- if (!this._is_action_enabled('create')) {
+ if (!this.is_action_enabled('create')) {
this.$el.addClass('oe_list_cannot_create');
}
- if (!this._is_action_enabled('edit')) {
+ if (!this.is_action_enabled('edit')) {
this.$el.addClass('oe_list_cannot_edit');
}
- if (!this._is_action_enabled('delete')) {
+ if (!this.is_action_enabled('delete')) {
this.$el.addClass('oe_list_cannot_delete');
}
@@ -363,7 +363,7 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
if (!this.sidebar && this.options.$sidebar) {
this.sidebar = new instance.web.Sidebar(this);
this.sidebar.appendTo(this.options.$sidebar);
- if (self._is_action_enabled('create')) {
+ if (self.is_action_enabled('create')) {
this.sidebar.add_items('other', [
{ label: _t("Import"), callback: this.on_sidebar_import }
]);
@@ -371,7 +371,7 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
this.sidebar.add_items('other', [
{ label: _t("Export"), callback: this.on_sidebar_export }
]);
- if (self._is_action_enabled('delete')) {
+ if (self.is_action_enabled('delete')) {
this.sidebar.add_items('other', [
{ label: _t('Delete'), callback: this.do_delete_selected }
]);