fix: Ignore mandatory fields while creating tax templates for new companies (#34005)
This commit is contained in:
@@ -158,6 +158,7 @@ def make_taxes_and_charges_template(company_name, doctype, template):
|
|||||||
# Ingone validations to make doctypes faster
|
# Ingone validations to make doctypes faster
|
||||||
doc.flags.ignore_links = True
|
doc.flags.ignore_links = True
|
||||||
doc.flags.ignore_validate = True
|
doc.flags.ignore_validate = True
|
||||||
|
doc.flags.ignore_mandatory = True
|
||||||
doc.insert(ignore_permissions=True)
|
doc.insert(ignore_permissions=True)
|
||||||
return doc
|
return doc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user