Override doctype

I need to override a doctype during the installation of another app. This is because I want the doctype in question to have more fields depending on the existence of the other app. For example, a resource has 12 fields, and when I install the Integration app, it receives an additional field, making it 13 fields in total.

Based on how you are describing this I would use the install hooks to manage the field in the custom doctype programmatically.
Otherwise, I would recommended that you manage customizations via the {module}/custom folder, similar to how ERPNext customized Frappe’s Address doctype.

1 Like