[WIP] Address and Contact Fixes

This commit is contained in:
mbauskar
2017-01-19 17:45:22 +05:30
parent 531b49f6c7
commit cbc49e2989
9 changed files with 29 additions and 44 deletions

View File

@@ -25,6 +25,7 @@ erpnext.LeadController = frappe.ui.form.Controller.extend({
refresh: function() {
var doc = this.frm.doc;
erpnext.toggle_naming_series();
frappe.dynamic_link = {doc: this.frm.doc, fieldname: 'name', doctype: 'Lead'}
if(!this.frm.doc.__islocal && this.frm.doc.__onload && !this.frm.doc.__onload.is_customer) {
this.frm.add_custom_button(__("Customer"), this.create_customer, __("Make"));