fix: Ignore mandatory fields in opening invoice via Opening Invoice Creation tool (#24821)

This commit is contained in:
Deepesh Garg 2021-03-09 20:23:26 +05:30 committed by GitHub
parent 47c6d2e00f
commit 06a6ee37cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,7 @@ def start_import(invoices):
try:
publish(idx, len(invoices), d.doctype)
doc = frappe.get_doc(d)
doc.flags.ignore_mandatory = True
doc.insert()
doc.submit()
frappe.db.commit()