fix: don't set primary action if workflow is set
This commit is contained in:
parent
6afa83f2c7
commit
0e222173ea
@ -39,7 +39,7 @@ frappe.ui.form.on('Payroll Entry', {
|
||||
}
|
||||
).toggleClass('btn-primary', !(frm.doc.employees || []).length);
|
||||
}
|
||||
if ((frm.doc.employees || []).length) {
|
||||
if ((frm.doc.employees || []).length && !frappe.model.has_workflow(frm.doctype)) {
|
||||
frm.page.clear_primary_action();
|
||||
frm.page.set_primary_action(__('Create Salary Slips'), () => {
|
||||
frm.save('Submit').then(()=>{
|
||||
|
Loading…
x
Reference in New Issue
Block a user