Hi
I have created a custom App with a few new doctypes. Working fine.
It does work nicely if there is also a workflow defined together with it.
I would like to also push the workflow to Github so that when someone else
uses the app, the workflow is also installed.
So essentially, when I push the App to Github, it must contain the doctypes
as well as the workflow.
I saw this video from Hussain
https://www.google.com/search?client=ubuntu-sn&channel=fs&q=bench+export-fixtures#fpstate=ive&vld=cid:cfb8c8f1,vid:fFEpiZbNjB0,st:0
So based on this, I would think that I should do the following…
New doctype name = new_doc ( create all fields etc for new_doc )
workflow for new_doc = new_doc_workflow
(create this workflow with all its states and flow-definitions)
Then in …/apps/custom_app/custom_app/hooks.py , I must insert…
fixtures = [
{
"dt": "Workflow",
"filters": [
["document_type", "=", "New_Doc"]
]
}
]
then just before I push to github , I must …
bench export-fixtures
then I end with the procedure to push the app to github?
Am i on the right track?