fix: Ignore mandatory fields while creating tax templates for new companies (#34005)
This commit is contained in:
parent
ab7293bcd3
commit
0efdc6c13a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user