You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2014/09/03 15:29:41 UTC

svn commit: r1622247 - /ofbiz/branches/release13.07/applications/party/entitydef/entitymodel.xml

Author: adrianc
Date: Wed Sep  3 13:29:41 2014
New Revision: 1622247

URL: http://svn.apache.org/r1622247
Log:
Merged revision(s) 1622246 from ofbiz/trunk:
Bug fix: Limit internal organization list to parties that have the internal organization role.

Modified:
    ofbiz/branches/release13.07/applications/party/entitydef/entitymodel.xml

Modified: ofbiz/branches/release13.07/applications/party/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/party/entitydef/entitymodel.xml?rev=1622247&r1=1622246&r2=1622247&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/party/entitydef/entitymodel.xml (original)
+++ ofbiz/branches/release13.07/applications/party/entitydef/entitymodel.xml Wed Sep  3 13:29:41 2014
@@ -1566,12 +1566,20 @@ under the License.
         title="PartyAcctgPreference and PartyGroup Entity">
         <member-entity entity-alias="PTYACCPREF" entity-name="PartyAcctgPreference"/>
         <member-entity entity-alias="PTYGROUP" entity-name="PartyGroup"/>
+        <member-entity entity-alias="PTYROLE" entity-name="PartyRole"/>
         <alias entity-alias="PTYACCPREF"  name="partyId"/>
         <alias entity-alias="PTYACCPREF"  name="baseCurrencyUomId"/>
         <alias entity-alias="PTYGROUP"  name="groupName"/>
+        <alias entity-alias="PTYROLE"  name="roleTypeId"/>
         <view-link entity-alias="PTYACCPREF" rel-entity-alias="PTYGROUP">
             <key-map field-name="partyId"/>
         </view-link>
+        <view-link entity-alias="PTYACCPREF" rel-entity-alias="PTYROLE">
+            <key-map field-name="partyId"/>
+        </view-link>
+        <entity-condition>
+            <condition-expr entity-alias="PTYROLE" field-name="roleTypeId" operator="equals" value="INTERNAL_ORGANIZATIO"/>
+        </entity-condition>
     </view-entity>
     <view-entity entity-name="PartyAndGroup"
         package-name="org.ofbiz.party.party"