Custom Script for workflow selection

Dears,
i have an issue in ERPNEXT i need someone to help me , the issue is i have workflow for sales order to approved from certain users but i need to make if the item category for example is service to bypass the workflow or to select other workflow to be applied on the doctype.

There is no way to bypass a workflow. But you can zip through the workflow states using custom script for those items that don’t need approval. Once you define the workflow - for those items that should bypass the workflow - you set the workflow state to final state of the workflow through custom script.

So please kindly assist me with examples for the custom script

Hi have you checked on this? https://frappe.github.io/erpnext/user/manual/en/setting-up/workflows

Yes i have done check for that , but the issue is i need custom workflow not the normal workflow

1 Like