[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:
parent
8c9777d4ce
commit
7b27e55d49
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue