mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-16 05:15:10 +00:00
Merge pull request #25165 from KaviyaPeriyasamy/version-12-hotfix-error-log-issue
fix: object referencing same memory address issue
This commit is contained in:
@@ -386,7 +386,9 @@ def throw_error_list(errors, title):
|
||||
else:
|
||||
frappe.throw(errors[0], title=title)
|
||||
|
||||
def validate_einvoice(validations, einvoice, errors=[]):
|
||||
def validate_einvoice(validations, einvoice, errors=None):
|
||||
if errors is None:
|
||||
errors = []
|
||||
for fieldname, field_validation in validations.items():
|
||||
value = einvoice.get(fieldname, None)
|
||||
if not value or value == "None":
|
||||
|
||||
Reference in New Issue
Block a user