mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
fix: reload doc in patch (#25144)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user