How can i export-fixtures of just one app?
Im little confused.
I have two doctypes: Titulos and Parcelas, I need get all custom fields from these two docs
I think you should go this way:
In hooks.py
fixtures = [
“Custom Script”,
{“dt”:“Custom Field”, “filters”: [[“dt”, “in”, (“Titulos”, “Parcelas”)]]}
]
What’s “in”?
It’s a filter, only select Doctypes that is named Titulos or Parcelas
1 Like
Thank you!
But when I run bench export-fixtures, this read all of hooks.py
Is possible run bench export-fixtures just of one folder?
Like:
bench export-fixtures apps/financeiro/financeiro/hooks.py
Just a doubt, why “Custom Script”?
Custom Script export custom scripts of these doctypes?
Hm… Thanks