Merge pull request #35145 from frappe/data-import-issue

fix: validate import columns only if type is insert
This commit is contained in:
Jannat Patel 2025-12-10 11:43:57 +05:30 committed by GitHub
commit 630987d97c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -647,7 +647,8 @@ class ImportFile:
elif extension == "xls":
data = read_xls_file_from_attached_file(content)
self.validate_columns_of_import_file(data)
if self.import_type == INSERT:
self.validate_columns_of_import_file(data)
return data