From 69aa8ffac4d99a692a8ec73c417c8813cdb43811 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 28 Apr 2014 16:51:34 +0530 Subject: [PATCH] Fixed as_dict of employee.py --- erpnext/hr/doctype/employee/employee.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/hr/doctype/employee/employee.py b/erpnext/hr/doctype/employee/employee.py index 44c1752139..f5be944f0b 100644 --- a/erpnext/hr/doctype/employee/employee.py +++ b/erpnext/hr/doctype/employee/employee.py @@ -17,8 +17,8 @@ class Employee(Document): self.salary_structure_exists = frappe.db.get_value("Salary Structure", {"employee": self.name, "is_active": "Yes", "docstatus": ["!=", 2]}) - def as_dict(self): - doc = super(Employee, self).as_dict() + def as_dict(self, no_nulls=False): + doc = super(Employee, self).as_dict(no_nulls) if hasattr(self, "salary_structure_exists"): doc["salary_structure_exists"] = self.salary_structure_exists