fix: Use extend_cscript function to properly extend class methods to cscript

This commit is contained in:
Suraj Shetty
2021-05-21 17:03:09 +05:30
parent 94a52c0e17
commit 81d49e9c71
23 changed files with 42 additions and 35 deletions

View File

@@ -55,7 +55,7 @@ erpnext.support.WarrantyClaim = class WarrantyClaim extends frappe.ui.form.Contr
}
};
$.extend(cur_frm.cscript, new erpnext.support.WarrantyClaim({frm: cur_frm}));
extend_cscript(cur_frm.cscript, new erpnext.support.WarrantyClaim({frm: cur_frm}));
cur_frm.fields_dict['serial_no'].get_query = function(doc, cdt, cdn) {
var cond = [];
@@ -93,4 +93,4 @@ cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) {
]
}
}
};
};