From 55e9f4455c3d12a797103cf4809f2a9b55b6dfb7 Mon Sep 17 00:00:00 2001 From: Kheireddine Mehdi Date: Tue, 3 Mar 2026 12:03:54 +0100 Subject: [PATCH] feat: add StateAdministration entity and extend Address with state relation - Create StateAdministration entity with hierarchical parent relation - Add typeSelect selection (Region, Sub Region, Wilaya, Commune) - Implement computed fullName for hierarchical display - Extend Address entity with many-to-one relation to StateAdministration --- .../src/main/resources/domains/Address.xml | 13 ++++++ .../resources/domains/StateAdministration.xml | 40 +++++++++++++++++++ .../src/main/resources/views/Selects.xml | 7 ++++ 3 files changed, 60 insertions(+) create mode 100644 modules/axelor-open-suite/axelor-crm/src/main/resources/domains/Address.xml create mode 100644 modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml diff --git a/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/Address.xml b/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/Address.xml new file mode 100644 index 0000000..3a0ed53 --- /dev/null +++ b/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/Address.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + \ No newline at end of file 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 new file mode 100644 index 0000000..3c8f413 --- /dev/null +++ b/modules/axelor-open-suite/axelor-crm/src/main/resources/domains/StateAdministration.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + diff --git a/modules/axelor-open-suite/axelor-crm/src/main/resources/views/Selects.xml b/modules/axelor-open-suite/axelor-crm/src/main/resources/views/Selects.xml index 12b1d52..40fda55 100644 --- a/modules/axelor-open-suite/axelor-crm/src/main/resources/views/Selects.xml +++ b/modules/axelor-open-suite/axelor-crm/src/main/resources/views/Selects.xml @@ -143,4 +143,11 @@ + + + + + + + \ No newline at end of file