mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 10:57:56 +00:00
[fix] Get defaults based on doctype or fieldname
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user