we would like to add a UI workflow to simplize some of the user contraction with the ERP and we need help in this as we dont have a python developer…
Like in SAP ERP workflow have a UI for the workflow and acceptation of the documents, the workflow is already in ERPnext but we feel its just not being used in the full way potentials of it…
a UI for the workflow and accept / Refuse buttons with a note to the reason will be much easier to be noticed than change the status of the document.
@ramielian add the states Accepted and Rejected in your Workflow and add this custom script in the target doctype, dont forget of replace {doctype} by the name of your doctype!
This script listen to workflow state to save a description of the Rejection
Ok @max_morais_dmm, thanks a lot for the response. I have already implement that thing by setting up workflow_state manually on custom button click and removed workflow default action.