From 9c192464b8e8ee7e2ed6235efdd640dcf4a25569 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Tue, 26 Feb 2019 15:13:03 +0100
Subject: [PATCH] link salesproject in org

---
 .../Organisation_entity.aod                   |  2 +-
 .../Salesproject_entity.aod                   | 24 ++++++++++++++-----
 .../OrganisationMain_view.aod                 |  5 ++++
 3 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/entity/Organisation_entity/Organisation_entity.aod b/entity/Organisation_entity/Organisation_entity.aod
index 277ee16247..e43de15637 100644
--- a/entity/Organisation_entity/Organisation_entity.aod
+++ b/entity/Organisation_entity/Organisation_entity.aod
@@ -483,7 +483,7 @@
       <dependency>
         <name>dependency</name>
         <entityName>Salesproject_entity</entityName>
-        <fieldName>#PROVIDER</fieldName>
+        <fieldName>Salesprojects</fieldName>
       </dependency>
       <children>
         <entityParameter>
diff --git a/entity/Salesproject_entity/Salesproject_entity.aod b/entity/Salesproject_entity/Salesproject_entity.aod
index 20e6365518..8a2b3c44d5 100644
--- a/entity/Salesproject_entity/Salesproject_entity.aod
+++ b/entity/Salesproject_entity/Salesproject_entity.aod
@@ -22,12 +22,6 @@
           <fieldName>Salesprojects</fieldName>
           <isConsumer v="false" />
         </entityDependency>
-        <entityDependency>
-          <name>ca678fae-46ce-4818-9661-cfc30f540234</name>
-          <entityName>Organisation_entity</entityName>
-          <fieldName>Salesprojects</fieldName>
-          <isConsumer v="false" />
-        </entityDependency>
       </dependencies>
     </entityProvider>
     <entityField>
@@ -408,6 +402,24 @@
       <state>READONLY</state>
       <valueProcess>%aditoprj%/entity/Salesproject_entity/entityfields/days_notactive/valueProcess.js</valueProcess>
     </entityField>
+    <entityProvider>
+      <name>Salesprojects</name>
+      <fieldType>DEPENDENCY_IN</fieldType>
+      <dependencies>
+        <entityDependency>
+          <name>0925d17f-a26a-4641-aaf4-0f74796fefa7</name>
+          <entityName>Organisation_entity</entityName>
+          <fieldName>Salesprojects</fieldName>
+          <isConsumer v="false" />
+        </entityDependency>
+      </dependencies>
+      <children>
+        <entityParameter>
+          <name>ContactId_param</name>
+          <mandatory v="true" />
+        </entityParameter>
+      </children>
+    </entityProvider>
   </entityFields>
   <recordContainers>
     <dbRecordContainer>
diff --git a/neonView/OrganisationMain_view/OrganisationMain_view.aod b/neonView/OrganisationMain_view/OrganisationMain_view.aod
index ef3e97b5d0..12624c344e 100644
--- a/neonView/OrganisationMain_view/OrganisationMain_view.aod
+++ b/neonView/OrganisationMain_view/OrganisationMain_view.aod
@@ -55,5 +55,10 @@
       <entityField>Salesprojects</entityField>
       <view>SalesprojectFilter_view</view>
     </neonViewReference>
+    <neonViewReference>
+      <name>c6a69024-34fb-4030-a7ce-ee1cede09487</name>
+      <entityField>Salesprojects</entityField>
+      <view>SalesprojectFilter_view</view>
+    </neonViewReference>
   </children>
 </neonView>
-- 
GitLab