Question about custom-app in frappe

I created a site name “demo.com” and inside it there is only Frappe and ERPNext so its item master shows like this.
Screenshot attached below :point_down:

Now I have installed “India compliance” in the same site and it is showing like this.
Screenshot attached below :point_down:

Did you notice that when I installed India Compliance in the “demo.com” site, an automatic HSN field was created in the item master?

I have to do the same thing in my “custom app” also, when I install my custom app in any other site or pull it from git repo, automatic field show in the item master.

This is an example of my requirements. I want this for many Doctype on ERPNext and also for others apps like “Frappe-CRM” , “HRMS”, Lending etc.

Please help me in this.
Thank You

@falah123 check this
india-compliance/india_compliance/gst_india/setup/__init__.py at develop · resilient-tech/india-compliance · GitHub check line no 321
india-compliance/india_compliance/gst_india/constants/custom_fields.py at develop · resilient-tech/india-compliance · GitHub

Hi:

There are many ways. Example provided by @Jeel is one of those.

Other one:

There a lot of resources to learn about it.
Enjoy your trip :wink:

1 Like