diff --git a/frappe/public/js/frappe/form/grid.js b/frappe/public/js/frappe/form/grid.js index e42e9df15c..c4f6e832d0 100644 --- a/frappe/public/js/frappe/form/grid.js +++ b/frappe/public/js/frappe/form/grid.js @@ -234,7 +234,7 @@ frappe.ui.form.Grid = Class.extend({ this.wrapper.find(".grid-footer").toggle(true); // show, hide buttons to add rows - if(this.cannot_add_rows) { + if(this.cannot_add_rows || (this.df && this.df.cannot_add_rows)) { // add 'hide' to buttons this.wrapper.find(".grid-add-row, .grid-add-multiple-rows") .addClass('hide');