Submittable DocTypes and Workflows in Frappe Framework, with use case!

  Рет қаралды 4,089

Build With Hussain

Build With Hussain

Күн бұрын

Пікірлер: 17
@jeansreal
@jeansreal 10 ай бұрын
Hello, can the workflow of multiple documents be updated from another document? I have a Parcel doctype with multiple statuses, the statuses of the parcel changes with the related linked document For example a warehouse receipt, contains multiple parcels When I change the status of the warehouse receipt I need to Update accordingly the status of the parcels
@nirajregmi6843
@nirajregmi6843 11 ай бұрын
Hello Hussain nice video on workflow. I have a doubt please clear me on this. My condition is: Suppose we are creating a workflow for leave approval- there is draft, pending approval from manager, pending approval from HR, Approved, Rejected states for an application form. An employee can request leave and first it is in draft state and then the employee sends it to the manager for approval. What is happening here is as the manager also has the role of employee, in the manager's application list view manager can see the drafts of his employee which is not necessary for him to view others' draft application rather he has to view the application that is in state of pending approval from manager. And also there is "only edit for" property in workflow builder which is set to only employees in the draft state as the manager has also role of employee, he can also edit leave application even if it is in the draft state. I hope u understand the scenario. For the above scenario what I want is if the application is in draft state only the employee who is requesting the leave should be able to edit and see that in their list, it should not be visible to others' lists and edit that unless it is in pending from manager state and so on. Please provide us a clear understanding of how to implement this scenario.
@BuildWithHussain
@BuildWithHussain 11 ай бұрын
Hi 👋 You have to combine workflows with role-permissions here, permissions are anyways applied.
@gunawannukila
@gunawannukila 10 ай бұрын
hello hussain, this may be out of context. How to attach erpnext webform to my custom html website built in frappe? (in www files)
@BuildWithHussain
@BuildWithHussain 10 ай бұрын
Hi 👋 As of now, you can’t embed web forms in other portal pages, you have to create the form separately. But I think if you raise an issue on GitHub repo; it will be more likely to happen, this was also requested sometime ago..
@يوسف-ت7س4ح
@يوسف-ت7س4ح 11 ай бұрын
can we set the workflow model in my custom app ? so i don't have to re build it again in another site 2: can we stop the workflow action in py controller ? using frappe.throw not helping
@BuildWithHussain
@BuildWithHussain 11 ай бұрын
1. Export workflow as fixture (frappeframework.com/docs/user/en/python-api/hooks#fixtures) 2. Try running your logic inside on_update of the DocType on which the workflow is applied.
@يوسف-ت7س4ح
@يوسف-ت7س4ح 11 ай бұрын
Thanks , please tell us when the next live build is @@BuildWithHussain
@BuildWithHussain
@BuildWithHussain 11 ай бұрын
Probably this Saturday, but if you are signed up here: buildwithhussain.dev, I will keep you posted!
@siyadrahman3953
@siyadrahman3953 7 ай бұрын
hello , i created an workflow for an doctype there is three states review,approve and reject so, i have to change an link field that connected to user with the user that performed the review action how can i do that
@BuildWithHussain
@BuildWithHussain 7 ай бұрын
You have to write a server script for that. On update, check the workflow state field and set your field as you want (frappe.session.user).
@siyadrahman3953
@siyadrahman3953 7 ай бұрын
@@BuildWithHussain i already used it on onUpdate but onUpdate is not calling at my secondary validation state and i have to add an condition for a action based on the current user can i access the session user from the ui?
@aminudangaata
@aminudangaata 11 ай бұрын
@BuildWithHussain , Nice video throwing more light on the Workflow Builder. I have a question. I want to show a prompt when the user clicks on Reject. The document gets rejected before the prompt shows up. before_workflow_action: function (frm, action) { if (frm.selected_workflow_action == 'Reject') { frappe.prompt([ { fieldname: 'reject_reason', label: 'Reason for rejection', fieldtype: 'Small Text', reqd: 1, }, ], function (values) { if (values.reject_reason.trim() !== '') { frm.set_value('rejection_reason', values.reject_reason); frm.workflow_state = action; frm.save('Update'); } else { frappe.msgprint(__('Please provide a reason for rejection.')); frappe.ui.form.on('Leave Application', { validate: function(frm) { frm.savecancel(); } }); } }, 'Rejection Reason'); // Return false to prevent the default workflow action return false; } }
@ellaidhurai602
@ellaidhurai602 9 ай бұрын
Hi, i try create a custom signup for my custom application in frappe. I created a custom doctype with email, username, registration no etc, then i created a web form with custom signup doctype. I want to use this custom email , user name for User creation email and username , so then only new User account will be created for that user. How to link that with User doctype or how to trigger User creation with entered email id when click submit with server script. Please any one tried custom signup using webform or any way help me. Thanks
@BuildWithHussain
@BuildWithHussain 8 ай бұрын
Ask here: discuss.frappe.io
@AshilKrishnaPS
@AshilKrishnaPS 10 ай бұрын
can we update the state of the workflow using code
@BuildWithHussain
@BuildWithHussain 10 ай бұрын
Should be possible, check the source code of Frappe to see how Framework does it, will mostly be straightforward.
Add TailwindCSS powered Portal pages in your Frappe Apps!
19:18
Build With Hussain
Рет қаралды 2,3 М.
All About Roles and Permissions Management in Frappe Framework/ERPNext!
24:29
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 25 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 18 МЛН
Fixtures and Doc Events (using hooks) in Frappe Framework!
13:54
Build With Hussain
Рет қаралды 3,7 М.
ERPNEXT Workflow: Maximize Efficiency
11:24
syncbricks
Рет қаралды 3,1 М.
Full-stack Apps with React & Frappe Framework Training : Day 1
2:44:46
The Commit Company
Рет қаралды 2,9 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 75 М.
ERPNext/Frappe Framework: Working with Workflows
21:01
Karani Geoffrey
Рет қаралды 6 М.
Frappe Builder Live Release and Demo, ft. Suraj Shetty
2:03:40
Build With Hussain
Рет қаралды 6 М.
Let's Learn ERPNext, Episode 1, ft. Dharmesh
1:25:10
Build With Hussain
Рет қаралды 14 М.