fix: reload doc in patch (#25144)

This commit is contained in:
Saurabh
2021-04-01 21:59:35 +05:30
committed by GitHub
parent c01b2caaa3
commit f9b9298a6d
2 changed files with 30 additions and 26 deletions

View File

@@ -12,7 +12,10 @@ def execute():
'Employee Tax Exemption Declaration', 'Employee Tax Exemption Declaration',
'Employee Tax Exemption Proof Submission', 'Employee Tax Exemption Proof Submission',
'Employee Tax Exemption Declaration Category', 'Employee Tax Exemption Declaration Category',
'Employee Tax Exemption Proof Submission Detail' 'Employee Tax Exemption Proof Submission Detail',
'gratuity_rule',
'gratuity_rule_slab',
'gratuity_applicable_component'
] ]
for doctype in doctypes: for doctype in doctypes:

View File

@@ -1,6 +1,7 @@
import frappe import frappe
def execute(): def execute():
frappe.reload_doc('custom', 'doctype', 'custom_field')
company = frappe.get_all('Company', filters = {'country': 'India'}) company = frappe.get_all('Company', filters = {'country': 'India'})
if not company: if not company:
return return