From f9b63dd36a4b5ecd4de49acce20a4c7d0a7fa410 Mon Sep 17 00:00:00 2001 From: Do Le Bao Nguyen Date: Tue, 3 Feb 2015 11:10:09 +0800 Subject: [PATCH] Look like a minor bug - There is no frappe.get_default but only frappe.db.get_default ? - Error return if selecting Employee in Salary Slip without specifying the Fiscal Year first --- erpnext/hr/doctype/salary_slip/salary_slip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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