mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
(cherry picked from commit a5baf909b7)
Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
This commit is contained in:
@@ -243,7 +243,12 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
var editable_price_list_rate = cint(frappe.defaults.get_default("editable_price_list_rate"));
|
var editable_price_list_rate = cint(frappe.defaults.get_default("editable_price_list_rate"));
|
||||||
|
|
||||||
if(df && editable_price_list_rate) {
|
if(df && editable_price_list_rate) {
|
||||||
df.read_only = 0;
|
const parent_field = frappe.meta.get_parentfield(this.frm.doc.doctype, this.frm.doc.doctype + " Item");
|
||||||
|
if (!this.frm.fields_dict[parent_field]) return;
|
||||||
|
|
||||||
|
this.frm.fields_dict[parent_field].grid.update_docfield_property(
|
||||||
|
'price_list_rate', 'read_only', 0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user