fix: reload docs before creating custom fields (#17586)

This commit is contained in:
Saurabh
2019-05-15 11:39:41 +05:30
committed by Nabin Hait
parent 4c0f754a96
commit 9da57d79b5
3 changed files with 15 additions and 1 deletions

View File

@@ -7,6 +7,9 @@ def execute():
if not company:
return
frappe.reload_doc('hr', 'doctype', 'payroll_period')
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_declaration_category')
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_proof_submission_detail')
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_declaration')
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_proof_submission')