mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 17:33:09 +00:00
[Fixes] Address and Contact fixes
This commit is contained in:
@@ -28,15 +28,6 @@ class SalesPartner(WebsiteGenerator):
|
||||
if self.partner_website and not self.partner_website.startswith("http"):
|
||||
self.partner_website = "http://" + self.partner_website
|
||||
|
||||
def get_contacts(self, nm):
|
||||
if nm:
|
||||
return frappe.db.convert_to_lists(frappe.db.sql("""
|
||||
select name, CONCAT(IFNULL(first_name,''),
|
||||
' ',IFNULL(last_name,'')),contact_no,email_id
|
||||
from `tabContact` where sales_partner = %s""", nm))
|
||||
else:
|
||||
return ''
|
||||
|
||||
def get_context(self, context):
|
||||
address = frappe.db.get_value("Address",
|
||||
{"sales_partner": self.name, "is_primary_address": 1},
|
||||
|
||||
Reference in New Issue
Block a user