[FIX] web_kanban: do not show the '+' in kanban groups when user cannot create

bzr revid: rco@openerp.com-20120905091620-2dmcx9h90ed2935p
This commit is contained in:
Raphael Collet 2012-09-05 11:16:20 +02:00
parent 8c9777d4ce
commit 7b27e55d49
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
return $.when();
},
_is_quick_create_enabled: function() {
if (! this.options.quick_creatable)
if (!this.options.quick_creatable || !this.is_action_enabled('create'))
return false;
if (this.fields_view.arch.attrs.quick_create !== undefined)
return JSON.parse(this.fields_view.arch.attrs.quick_create);