Update enable_scheduler_job_for_item_reposting.py

This commit is contained in:
rohitwaghchaure
2021-10-14 16:57:54 +05:30
committed by GitHub
parent 3f97413814
commit 230a5d4b39

View File

@@ -1,8 +1,7 @@
import frappe
def execute():
frappe.reload_doc('core', 'doctype', 'scheduled_job_type')
if frappe.db.exists('Scheduled Job Type', 'repost_item_valuation.repost_entries'):
frappe.db.set_value('Scheduled Job Type',
'repost_item_valuation.repost_entries', 'stopped', 0)
'repost_item_valuation.repost_entries', 'stopped', 0)