[fix] primary button color for make
This commit is contained in:
parent
90657fb566
commit
b5a3df920c
@ -33,7 +33,6 @@ erpnext.LeadController = frappe.ui.form.Controller.extend({
|
|||||||
this.frm.add_custom_button(__("Customer"), this.create_customer, __("Make"));
|
this.frm.add_custom_button(__("Customer"), this.create_customer, __("Make"));
|
||||||
this.frm.add_custom_button(__("Opportunity"), this.create_opportunity, __("Make"));
|
this.frm.add_custom_button(__("Opportunity"), this.create_opportunity, __("Make"));
|
||||||
this.frm.add_custom_button(__("Quotation"), this.make_quotation, __("Make"));
|
this.frm.add_custom_button(__("Quotation"), this.make_quotation, __("Make"));
|
||||||
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this.frm.doc.__islocal) {
|
if(!this.frm.doc.__islocal) {
|
||||||
|
@ -48,8 +48,6 @@ frappe.ui.form.on("Opportunity", {
|
|||||||
frm.add_custom_button(__('Quotation'),
|
frm.add_custom_button(__('Quotation'),
|
||||||
cur_frm.cscript.create_quotation, __("Make"));
|
cur_frm.cscript.create_quotation, __("Make"));
|
||||||
|
|
||||||
frm.page.set_inner_btn_group_as_primary(__("Make"));
|
|
||||||
|
|
||||||
if(doc.status!=="Quotation") {
|
if(doc.status!=="Quotation") {
|
||||||
frm.add_custom_button(__('Lost'),
|
frm.add_custom_button(__('Lost'),
|
||||||
cur_frm.cscript['Declare Opportunity Lost']);
|
cur_frm.cscript['Declare Opportunity Lost']);
|
||||||
|
@ -21,8 +21,7 @@ frappe.ui.form.on("Job Applicant", {
|
|||||||
"designation": frm.doc.job_opening,
|
"designation": frm.doc.job_opening,
|
||||||
};
|
};
|
||||||
frappe.new_doc("Offer Letter");
|
frappe.new_doc("Offer Letter");
|
||||||
}, __("Make"));
|
});
|
||||||
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,17 +19,16 @@ frappe.ui.form.on("Communication", {
|
|||||||
if(!in_list(["Lead", "Opportunity"], frm.doc.reference_doctype)) {
|
if(!in_list(["Lead", "Opportunity"], frm.doc.reference_doctype)) {
|
||||||
frm.add_custom_button(__("Lead"), () => {
|
frm.add_custom_button(__("Lead"), () => {
|
||||||
frappe.confirm(__(confirm_msg, [__("Lead")]), () => {
|
frappe.confirm(__(confirm_msg, [__("Lead")]), () => {
|
||||||
frm.trigger('make_lead_from_communication');
|
frm.trigger('make_lead_from_communication');
|
||||||
})
|
})
|
||||||
}, "Make");
|
}, __("Make"));
|
||||||
|
|
||||||
frm.add_custom_button(__("Opportunity"), () => {
|
frm.add_custom_button(__("Opportunity"), () => {
|
||||||
frappe.confirm(__(confirm_msg, [__("Opportunity")]), () => {
|
frappe.confirm(__(confirm_msg, [__("Opportunity")]), () => {
|
||||||
frm.trigger('make_opportunity_from_communication');
|
frm.trigger('make_opportunity_from_communication');
|
||||||
})
|
})
|
||||||
}, "Make");
|
}, __("Make"));
|
||||||
}
|
}
|
||||||
frm.page.set_inner_btn_group_as_primary(__("Make"));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
make_lead_from_communication: (frm) => {
|
make_lead_from_communication: (frm) => {
|
||||||
|
@ -26,8 +26,7 @@ erpnext.support.WarrantyClaim = frappe.ui.form.Controller.extend({
|
|||||||
if(!cur_frm.doc.__islocal &&
|
if(!cur_frm.doc.__islocal &&
|
||||||
(cur_frm.doc.status=='Open' || cur_frm.doc.status == 'Work In Progress')) {
|
(cur_frm.doc.status=='Open' || cur_frm.doc.status == 'Work In Progress')) {
|
||||||
cur_frm.add_custom_button(__('Maintenance Visit'),
|
cur_frm.add_custom_button(__('Maintenance Visit'),
|
||||||
this.make_maintenance_visit, __("Make"))
|
this.make_maintenance_visit);
|
||||||
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user