diff --git a/addons/web/static/src/js/views/form_common.js b/addons/web/static/src/js/views/form_common.js index 2ac0e0a024f..638327c8a3a 100644 --- a/addons/web/static/src/js/views/form_common.js +++ b/addons/web/static/src/js/views/form_common.js @@ -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.