mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 06:08:25 +00:00
Salutation and Gender in Lead and Customer (#9199)
This commit is contained in:
committed by
Rushabh Mehta
parent
797f2030f8
commit
1dc26b127b
@@ -7,11 +7,11 @@ frappe.ui.form.on('Sales Partner', {
|
||||
|
||||
if(frm.doc.__islocal){
|
||||
hide_field(['address_html', 'contact_html', 'address_contacts']);
|
||||
frappe.geo.clear_address_and_contact(frm);
|
||||
frappe.contacts.clear_address_and_contact(frm);
|
||||
}
|
||||
else{
|
||||
unhide_field(['address_html', 'contact_html', 'address_contacts']);
|
||||
frappe.geo.render_address_and_contact(frm);
|
||||
frappe.contacts.render_address_and_contact(frm);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.utils import cstr, filter_strip_join
|
||||
from frappe.website.website_generator import WebsiteGenerator
|
||||
from frappe.geo.address_and_contact import load_address_and_contact
|
||||
from frappe.contacts.address_and_contact import load_address_and_contact
|
||||
|
||||
class SalesPartner(WebsiteGenerator):
|
||||
website = frappe._dict(
|
||||
|
||||
Reference in New Issue
Block a user