How to develop for erpnext?

Is it possible to develop your own modules for erpnext with code? If so - how can I do that? Documentation is complicated - its all about using web interface, with almost no info about writing actual code. And frappe documentation only informs about how to create an app from scratch. I’m confused

i totally agree with you, it is complicated, too many things to consider, it is not easy to know where to start.
There should be guides like; if you want to do this start from here and follow these steps;
for example if you want to develop your own module in erpnext, start from here and follow these steps,
if you want to add custom fields start from here and follow these steps, etc etc.
Development mode, server side script, client side script etc. they are complicated.

i want to do this;
Product Specs section - ERPNext / Customize ERPNext - Frappe Forum
but i dont know where to start, it should not be that hard.

Hi:

There are many ways to customize ERPNext …

Best way is creating a custom app with:

  • Custom fields
  • New doctypes
  • Client scripts to modify frontend behavior
  • Server scripts to modify backend
  • Code overrides if needed
  • Reports, workspaces, etc …

Custom app approach will protect your work in upcoming Frappe or ERPNext updates …

Example:

You require a customization with 3 new fields on item doctype, and a button that trigger some action.

  1. Create custom app
  2. Customize item form adding the new fields.
  3. Create a client script with desired custom button
  4. Create a .py file with backend code for action button, (or server script)
  5. Include all new objects in the new app (fixtures, etc …)

The custom app will works, remain working after updates and it can be installed in other ERPNext instance …

Sorry for the “big picture” :slight_smile:
Hope this helps.

2 Likes