fix: Make -> Create

This commit is contained in:
Suraj Shetty 2019-09-12 22:04:49 +05:30
parent d51f7af9ab
commit cdce6c746f

View File

@ -28,12 +28,12 @@ class CallPopup {
'depends_on': () => this.call_log.lead 'depends_on': () => this.call_log.lead
}, { }, {
'fieldtype': 'Button', 'fieldtype': 'Button',
'label': __('Make New Contact'), 'label': __('Create New Contact'),
'click': () => frappe.new_doc('Contact', { 'mobile_no': this.caller_number }), 'click': () => frappe.new_doc('Contact', { 'mobile_no': this.caller_number }),
'depends_on': () => !this.get_caller_name() 'depends_on': () => !this.get_caller_name()
}, { }, {
'fieldtype': 'Button', 'fieldtype': 'Button',
'label': __('Make New Lead'), 'label': __('Create New Lead'),
'click': () => frappe.new_doc('Lead', { 'mobile_no': this.caller_number }), 'click': () => frappe.new_doc('Lead', { 'mobile_no': this.caller_number }),
'depends_on': () => !this.get_caller_name() 'depends_on': () => !this.get_caller_name()
}, { }, {