diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.py b/erpnext/hr/doctype/salary_slip/salary_slip.py index f87a122ca2..32f0e04843 100644 --- a/erpnext/hr/doctype/salary_slip/salary_slip.py +++ b/erpnext/hr/doctype/salary_slip/salary_slip.py @@ -45,7 +45,7 @@ class SalarySlip(TransactionBase): def get_leave_details(self, lwp=None): if not self.fiscal_year: - self.fiscal_year = frappe.get_default("fiscal_year") + self.fiscal_year = frappe.db.get_default("fiscal_year") if not self.month: self.month = "%02d" % getdate(nowdate()).month