diff --git a/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml b/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml index 3c8f413..dbe5be1 100644 --- a/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml +++ b/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml @@ -21,12 +21,18 @@ while (current != null && current.getName() != null) { + if (current == current.getParent()) { + break; + } + if (fullName.isEmpty()) { fullName = current.getName(); } else { fullName = current.getName() + " - " + fullName; } + + current = current.getParent(); }