The Territory DocType contains a duplicate definition for the is_group field in its core JSON file (CRM territory.json). This causes a validation error (Duplicate name ‘is_group’) when a user attempts to save any customizations to this DocType, effectively blocking any modifications.
Steps to Reproduce
-Go to ‘Customize Form’.
-Select the Territory DocType.
-Make any change (e.g., add a new field, change a property).
-Click ‘Save’.
Behavior
Expected Behavior: The customizations should be saved successfully. Actual Behavior: The system throws a Duplicate name ‘is_group’ error and the changes are not saved.
Evidence
Error in UI:
The following error appears when trying to save the form.
Root Cause in JSON:
The crm_territory.json file on the develop branch clearly shows the is_group field defined twice.
This seems to be my first bug report, and I’m happy to provide any more information needed to get this fixed. Thank you!