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:
Submit records from Draft state to Pending.
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.
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