ERPNext Conference 2019* ERPNext.com Blog

Exporting all the changes using hooks at a time including custom fields, workflow, doctype etc


#1

Hi team ,

I have created separate App and in that App ,i have created separate 2 modules namely Recruitment and Leave Management.

1)In Job Applicant and Job Opening of core ERPNext HR module i have added custom fields using customization form. And created some doctypes for Job Applicant and Job Opening.

2)In Leave Management i have created custom workflow for leave approval process,roles etc

I want to export all the changes in one app using hooks and export fixtures concept which includes custom fields, workflow, doctype , roles etc

Previously i have exported one by one Job Applicant , job Opening ,workflow etc now i want to export all changes at a time

Plz find the syntax & provide solution to export all changes using fixtures at a one time
#Exporting custom fileds of Job opening
fixtures = [{“dt”: “Custom Filed”,
“filters”: [
[
“name”, “in”, [“Job Opening-years_of_experience”,
“Job Opening-skills_required”,
“Job Opening-qualification_required”,
“Job Opening-number_of_positions”
]
]
]}
] “”"

#Fixtures for leave application approval process workflow
fixtures = [“Workflow”,“Workflow State”, “Role”]


#2

Issue Solved
Here you can find the syntax
This may be helpful to others

fixtures = [“Workflow”,“Workflow State”, “Role”,
{“dt”: “Custom Field”,
“filters”: [
[
“name”, “in”, [“Job Opening-years_of_experience”,
“Job Opening-skills_required”,
“Job Opening-qualification_required”,
“Job Opening-number_of_positions”,
“Job Applicant-evaluation_stage”,
“Job Applicant-primary_phone_number”
]