brotherton-erpnext/erpnext/patches/v12_0/set_default_payroll_based_on.py
2021-11-05 11:16:29 +05:30

7 lines
153 B
Python

import frappe
def execute():
frappe.reload_doc("hr", "doctype", "hr_settings")
frappe.db.set_value("HR Settings", None, "payroll_based_on", "Leave")