[FIX] web: Don't show buttons when model has readonly access

PR #19314
This commit is contained in:
Yenthe V.G
2017-09-08 09:23:44 +02:00
committed by ged-odoo
parent 55b8a454c9
commit 1d769ad5a7
@@ -174,8 +174,8 @@ var CompletionFieldMixin = {
init: function() {
this.limit = 7;
this.orderer = new utils.DropMisordered();
this.can_create = this.node.attrs.can_create || true;
this.can_write = this.node.attrs.can_write || true;
this.can_create = this.node.attrs.can_create == "false" ? false : true;
this.can_write = this.node.attrs.can_write == "false" ? false : true;
},
/**
* Call this method to search using a string.