New app as Addons For ERPNext


i want to make an app that be an addons to ERPNext…
im already create addons module
im creating the python script
im creating the custom field
im creating git for the app

so far im alredy success to install the app using bench get-app

but the problem is, i want to export my fixtures
because i got found this error
/frappe-bench$ bench frappe --export_fixtures
frappe app is not installed. Run the following command to install frappe
bench get-app frappe GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
File “/home/myme/bench-repo/bench/”, line 46, in cli
return old_frappe_cli()
File “/home/myme/bench-repo/bench/”, line 98, in old_frappe_cli
os.execv(f, [f] + sys.argv[2:])
OSError: [Errno 2] No such file or directory

my apps i just test to make is addons (the name of the apps and the module)

please help


@bobzz_zone I dont know which version you are using but try this!

bench use {site-name} bench export-fixtures


Hi… thanks…

its works… but where was the result?

In the path frappe-bench/your_app/your_app/fixtures

im looking at frappe-bench/addons/addons/fixtures and frappe-bench/apps/addons/addons/fixtures but there is no such dir…

any clue ?

@bobzz_zone I’m sorry, typo! frappe-bench/apps/addons/addons/fixtures

yap that still no fixtures folder or files

i do seach but i find only on :

but i dont think that was what i needed…

@bobzz_zone do you have listed the fixtures in of your app?

can you give me an example ?..what should i make in hooks ?..actually my hooks is empty now

fixtures is the name of the doctype ?


i did add:
required_apps = [

fixtures = [
“Sales Invoice Item”,“Delivery Note Item”,“Purchase Receipt Item”,“Stock Entry Detail”,“Packed Item”

also restart the supervisor
and run bench export-fixtures

but still nothing shows up

any clue?

@bobzz_zone, why “Sales Invoice Item” instead of “Sales Invoice”?

I dont understood why you are trying to export the detail table instead of the main table!

@bobzz_zone, I guess you are trying to export “Custom Field”, “Custom Script”, “Property Setter”

@bobzz_zone write this in to export custom fields and print format

@max_morais_dmm yap… i tried to export my custom field, custom script…
@kolate_sambhaji will try that


it still the same… not working…

it is working if i do it in erpnext hooks… is it because hooks in new app is not working?

@bobzz_zone share your code.

@rmehta for now im still developing it… im just tried to make somerandom thing before i make one…

for sharing it, it would be nice if there were one repo like packagist or something to put it together…