I need department wise workflow for ‘material request’ doctype.
User can make material request for any item. He/she will select department and items. Now suppose user select IT department. So this material request will go to only IT manager/IT user. Then he/she will approve this material request.
Actually I am doing the same thing I want department wise workflow.
I followed your each step but in mine workflow In the next state options of approve or reject are automatically remove I didn’t find any solution. Please help me in this.
If you have any documentation of your work please share it me. I am very thankful to you.
I create a doctype(Complaint). Employee is the person who can create the complaint. My requirement is that if the employee is from from civil department then only that department HOD see the complaint and perform actions on it. Other department HOD will not see that request.
as a workflow system you can’t restrict users in the workflow system and also you can’t use multiple workflow for the same doctype.
I am using user permission.
suppose my doctype name is ‘workflow test’ and in this doctype I have a field name ‘department’. When a creator creates this doc and put a department then that doc will follow the workflow as the department mentioned.
for this you should create all the possible state and transition in the workflow. see my shared attachment.
each and every user should have different permission as per department.
every transition should have a condition to follow the department wise workflow.
please see the attachment if you can’t understand let me know I will try to explain it more briefly.
@shuvro-baset First i wish to thanking you for giving your valuable time. I seen your all work you explained it very well . Now i am trying it in my system i will notify you if i am get any problem. Thanks for your support.
I am getting a problem while adding the user permission. As you wrote your Doctype name in applicable for in advance control in user permission. In my system it not shows my doctype name in dropdown list in applicable for. I tried it by apply to all documents type, but it doesn’t work.
in that case you can do it using condition. go to transition rules edit option. in the condition section you should add your condition … I am not sure, it will work or not. you can try it.