Need Help with ERPNext Workflow State Transitions

Hello Everyone,

I’m encountering issues with workflow state transitions in ERPNext and could use some guidance. Currently, I have set up a workflow where transitions from Draft to Pending, and from Pending to Approved are working fine. However, I’m receiving warnings when trying to:

  1. Submit records from Draft state to Pending.
  2. Approve records from Pending state to Approved.

The specific warning messages are:

  • Workflow State transition not allowed from Draft to Pending.
  • Workflow State transition not allowed from Pending to Approved.

thanks in advance

Doc Status,

Draft - 0
Submitted - 1
Cancelled - 2

Use rejected state for 2

thank you for your reply but I don’t think that is the case because I don’t want to cancel the record.

Once the document is approved, you can revert it to the draft stage.

set rejected in the 3 rows and approved in the 4 rows and ignore the error.

hi , how are you hope doing great
i got the issue that you are making
first thing is draft and pending are the same thing if a document is submitted it is a draft and waiting to be accepted or rejected
here you put draft and pending at the same time which is wrong
first state should be pending by the user
then admin can approve or reject or block
first option will be pending 2nd accepted 3rd blocked 4th rejected
when a users put his data it will be in pending state
admin can either accept reject and block
block is an extra field because you just want the user to be block for some reason then you can approve later i will share my workflow state you can have a look
also keep all the document status to zero

Pending User
Approved Admin
Rejected Admin
Blocked Admin

and the rest of the workflow i have shared screenshot you can have a look