fix: Ignore permissions while fetching module settings properties
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index 08e3940..261d557 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -252,9 +252,14 @@
}
toggle_enable_for_stock_uom(field) {
- frappe.db.get_single_value('Stock Settings', field)
- .then(value => {
- this.frm.fields_dict["items"].grid.toggle_enable("stock_qty", value);
+ frappe.call({
+ method: 'erpnext.stock.doctype.stock_settings.stock_settings.get_enable_stock_uom_editing',
+ callback: (r) => {
+ if (r.message) {
+ var value = r.message[field];
+ this.frm.fields_dict["items"].grid.toggle_enable("stock_qty", value);
+ }
+ }
});
}