I need to add a new field into “item” DocType. I managed to do it by modifying source code (frappe-bench/apps/erpnext/erpnext/stock/doctype/item) and it works fine.
But I’m afraid it might break during the update. I know that in Odoo for this purpose inheritance is used, so there you can create a custom module (let’s call it my_stock) and there inherit the original module, add what you need, and be sure that when you move to a new version nothing will break. Is there any way to do the same in ERPNext? (add a new field to a DocType without changing source code)?
Thank you! It works.
A Newly added custom field appeared where it should.
But I’m a little disappointed, I noticed that it is stored in the “tubCustom Field” table in the database.
I can’t commit this change through git. Is there any way to track such changes?