From 4494d46020ee2a28b0b1bdaee73127693b8c050f Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 10 Oct 2019 14:17:06 +0530 Subject: [PATCH] fix: name 'link_link_doctype' is not defined --- erpnext/crm/doctype/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/crm/doctype/utils.py b/erpnext/crm/doctype/utils.py index 535458af21..885ef0584d 100644 --- a/erpnext/crm/doctype/utils.py +++ b/erpnext/crm/doctype/utils.py @@ -17,7 +17,7 @@ def get_last_interaction(contact=None, lead=None): if link.link_doctype == 'Customer': last_issue = get_last_issue_from_customer(link.link_name) query_condition += "(`reference_doctype`=%s AND `reference_name`=%s) OR" - values += [link_link_doctype, link_link_name] + values += [link.link_doctype, link.link_name] if query_condition: # remove extra appended 'OR'