get address display in customer
This commit is contained in:
parent
4adcced9ae
commit
662b23ce57
@ -47,11 +47,11 @@ frappe.ui.form.on("Customer", {
|
||||
frappe.call({
|
||||
doc: frm.doc,
|
||||
args: {
|
||||
"address_title":frm.doc.customer_primary_address
|
||||
"address_title": frm.doc.customer_primary_address
|
||||
},
|
||||
method: 'get_display',
|
||||
method: 'frappe.contacts.doctype.address.address.get_address_display',
|
||||
callback: function(r) {
|
||||
frm.set_value("primary_address",r.message);
|
||||
frm.set_value("primary_address", r.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -77,11 +77,6 @@ class Customer(TransactionBase):
|
||||
if self.flags.is_new_doc and self.get('address_line1'):
|
||||
make_address(self)
|
||||
|
||||
@classmethod
|
||||
def get_display(self,address_title):
|
||||
from frappe.contacts.doctype.address.address import get_address_display
|
||||
return get_address_display(address_title)
|
||||
|
||||
def update_lead_status(self):
|
||||
'''If Customer created from Lead, update lead status to "Converted"
|
||||
update Customer link in Quotation, Opportunity'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user