style(stock): declare the Data Import class extension with the others

This commit is contained in:
Mihir Kandoi
2026-09-09 08:33:58 +05:30
parent 766e51ae58
commit e51c01628d

View File

@@ -72,7 +72,10 @@ doctype_list_js = {
page_js = {"print": "public/js/print.js"}
extend_doctype_class = {"Address": "erpnext.accounts.custom.address.ERPNextAddress"}
extend_doctype_class = {
"Address": "erpnext.accounts.custom.address.ERPNextAddress",
"Data Import": "erpnext.stock.serial_batch_import.SerialBatchDataImport",
}
override_whitelisted_methods = {"frappe.www.contact.send_message": "erpnext.templates.utils.send_message"}
@@ -382,9 +385,6 @@ pre_submit_validation_doctypes = [
"Sales Order",
]
extend_doctype_class["Data Import"] = "erpnext.stock.serial_batch_import.SerialBatchDataImport"
doc_events = {
"*": {
"before_print": "erpnext.stock.serial_batch_display.set_serial_number_labels",