commit | 06a6ee37cbf62e848794f4a5076245e7b029dccd | [log] [tgz] |
---|---|---|
author | Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> | Tue Mar 09 20:23:26 2021 +0530 |
committer | GitHub <noreply@github.com> | Tue Mar 09 20:23:26 2021 +0530 |
tree | 28b0fec6de8abf5488db52bde25b90fa6cd91cad | |
parent | 47c6d2e00ffa015a026c77ea349a9276899302a6 [diff] |
fix: Ignore mandatory fields in opening invoice via Opening Invoice Creation tool (#24821)
diff --git a/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py b/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py index 76027a3..e6449b7 100644 --- a/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py +++ b/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py
@@ -198,6 +198,7 @@ try: publish(idx, len(invoices), d.doctype) doc = frappe.get_doc(d) + doc.flags.ignore_mandatory = True doc.insert() doc.submit() frappe.db.commit()