fix: Ignore mandatory fields while creating tax templates for new companies (#34005)

This commit is contained in:
Deepesh Garg 2023-02-11 12:03:48 +05:30 committed by GitHub
parent ab7293bcd3
commit 0efdc6c13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,6 +158,7 @@ def make_taxes_and_charges_template(company_name, doctype, template):
# Ingone validations to make doctypes faster
doc.flags.ignore_links = True
doc.flags.ignore_validate = True
doc.flags.ignore_mandatory = True
doc.insert(ignore_permissions=True)
return doc