[fix] Get defaults based on doctype or fieldname

This commit is contained in:
Nabin Hait
2015-12-23 16:37:00 +05:30
parent d55d0c06e3
commit b6b56453e1
37 changed files with 39 additions and 39 deletions

View File

@@ -41,7 +41,7 @@ class Issue(Document):
if not self.company:
self.company = frappe.db.get_value("Lead", self.lead, "company") or \
frappe.db.get_default("company")
frappe.db.get_default("Company")
def update_status(self):
status = frappe.db.get_value("Issue", self.name, "status")