fix: Ignore mandatory fields in opening invoice via Opening Invoice Creation tool (#24821)
This commit is contained in:
parent
47c6d2e00f
commit
06a6ee37cb
@ -198,6 +198,7 @@ def start_import(invoices):
|
|||||||
try:
|
try:
|
||||||
publish(idx, len(invoices), d.doctype)
|
publish(idx, len(invoices), d.doctype)
|
||||||
doc = frappe.get_doc(d)
|
doc = frappe.get_doc(d)
|
||||||
|
doc.flags.ignore_mandatory = True
|
||||||
doc.insert()
|
doc.insert()
|
||||||
doc.submit()
|
doc.submit()
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user