mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 18:45:20 +00:00
Salutation and Gender in Lead and Customer (#9199)
This commit is contained in:
committed by
Rushabh Mehta
parent
797f2030f8
commit
1dc26b127b
@@ -25,12 +25,12 @@ frappe.ui.form.on("Supplier", {
|
||||
}
|
||||
|
||||
if (frm.doc.__islocal) {
|
||||
hide_field(['address_html', 'contact_html']);
|
||||
frappe.geo.clear_address_and_contact(frm);
|
||||
hide_field(['address_html','contact_html']);
|
||||
frappe.contacts.clear_address_and_contact(frm);
|
||||
}
|
||||
else {
|
||||
unhide_field(['address_html', 'contact_html']);
|
||||
frappe.geo.render_address_and_contact(frm);
|
||||
unhide_field(['address_html','contact_html']);
|
||||
frappe.contacts.render_address_and_contact(frm);
|
||||
|
||||
// custom buttons
|
||||
frm.add_custom_button(__('Accounting Ledger'), function () {
|
||||
|
||||
@@ -6,7 +6,7 @@ import frappe
|
||||
import frappe.defaults
|
||||
from frappe import msgprint, _
|
||||
from frappe.model.naming import make_autoname
|
||||
from frappe.geo.address_and_contact import load_address_and_contact, delete_contact_and_address
|
||||
from frappe.contacts.address_and_contact import load_address_and_contact, delete_contact_and_address
|
||||
from erpnext.utilities.transaction_base import TransactionBase
|
||||
from erpnext.accounts.party import validate_party_accounts, get_dashboard_info, get_timeline_data # keep this
|
||||
|
||||
|
||||
Reference in New Issue
Block a user