Hi Guys,
I want to create one client project remotely, however I want to create custom doctype, workflows and assignment rules for project and need to export all these works from my system to import on client system full workable.
What are approch should i follow and what is right steps to go with that?
Thank You for help.
NCP
August 4, 2023, 6:50am
2
Hi @Gaurav1 ,
I think, you should create a custom app and add a hook.py
fixtures = [{
"doctype": "Custom Field",
},
{
"doctype": "Property Setter",
},
{
"doctype": "Server Script",
},
{
"doctype": "Client Script",
},
{
"doctype": "Workflow Action Master",
},
{
"doctype": "Workflow State",
},
{
"doctype": "Workflow",
},
{
"doctype": "Assignment Rule",
},
]
Then apply the command:
Then all customization is exported in the custom app which you added in fixtures.
bench --site [sitename] export-fixtures
Reference: FIXTURES AND CUSTOM FIELDS IN FRAPPE AND ERPNEXT
When you need to export data or settings and import it to another application, fixtures is the tool frappe has build to ease this process.
Est. reading time: 1 minute
Reference: CREATING A CUSTOM APP IN FRAPPE/ERPNEXT AND INSTALLING IT ON YOUR INSTANCE
Thank You!
3 Likes
fixtures = [{
“doctype”: “Custom Field”,
},
{
“doctype”: “Property Setter”,
},
]
code can simplify into when not using filters :
fixtures = ["Custom Field", "Property Setter"]
Always specify the app name exporting fixture
eg:
bench export-fixtures --app appname
2 Likes