Fixes Issue 0025997:Ability to define business partners with same search key
authorAtul Gaware <atul.gaware@openbravo.com>
Fri, 27 Jun 2014 15:22:00 +0530
changeset 24118 62cb5fa058ed
parent 24117 661190e92d0b
child 24119 627196051666
Fixes Issue 0025997:Ability to define business partners with same search key
Needed in case to define same business partner in different organization of
same client
src-db/database/model/tables/C_BPARTNER.xml
--- a/src-db/database/model/tables/C_BPARTNER.xml	Thu Jul 24 18:45:22 2014 +0200
+++ b/src-db/database/model/tables/C_BPARTNER.xml	Fri Jun 27 15:22:00 2014 +0530
@@ -461,6 +461,7 @@
       </index>
       <unique name="C_BPARTNER_VALUE">
         <unique-column name="AD_CLIENT_ID"/>
+        <unique-column name="AD_ORG_ID"/>
         <unique-column name="VALUE"/>
       </unique>
       <check name="C_BPARTNER_CBLOCKING_CHK"><![CDATA[CUSTOMER_BLOCKING IN ('Y', 'N')]]></check>