Merge pull request #7836 from fproldan/fix_fixtures_develop

fix: Custom fields order error in fixtures for develop
This commit is contained in:
mergify[bot] 2019-07-04 11:45:36 +00:00 committed by GitHub
commit b54e1d2dcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,4 +67,5 @@ def export_fixtures(app=None):
if not os.path.exists(frappe.get_app_path(app, "fixtures")):
os.mkdir(frappe.get_app_path(app, "fixtures"))
export_json(fixture, frappe.get_app_path(app, "fixtures", frappe.scrub(fixture) + ".json"), filters=filters, or_filters=or_filters)
export_json(fixture, frappe.get_app_path(app, "fixtures", frappe.scrub(fixture) + ".json"),
filters=filters, or_filters=or_filters, order_by="idx asc, creation asc")