diff --git a/erpnext/accounts/doctype/subscription/subscription.js b/erpnext/accounts/doctype/subscription/subscription.js index 49ba370c2f7cbdb61a69783236608434575944f0..db244a0e20cb53e585c7d882ed3b4673f958d255 100644 --- a/erpnext/accounts/doctype/subscription/subscription.js +++ b/erpnext/accounts/doctype/subscription/subscription.js @@ -88,15 +88,17 @@ frappe.ui.form.on("Subscription", { }); } - frappe.db - .get_list("Subscription Plan", { - filters: { disabled: 0 }, - }) - .then((sub_plans) => { - if (!sub_plans.length) { - frm.toggle_display("select_subscription_plan", 0); - } - }); + if (frappe.model.can_read("Subscription Plan")) { + frappe.db + .get_list("Subscription Plan", { + filters: { disabled: 0 }, + }) + .then((sub_plans) => { + if (!sub_plans.length) { + frm.toggle_display("select_subscription_plan", 0); + } + }); + } }, customer: function (frm) {