JIRA TICKET : https://idempiere.atlassian.net/browse/IDEMPIERE-1502 (#1926)
This commit is contained in:
parent
e477dad1c0
commit
00c4fec2f4
|
@ -186,5 +186,15 @@ public class MOrgInfo extends X_AD_OrgInfo implements ImmutablePOSupport
|
|||
makeImmutable();
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean beforeSave(boolean newRecord) {
|
||||
if(!newRecord && getParent_Org_ID()==get_ID()){
|
||||
log.saveError("Error", "Parent_Org_ID=AD_Org_ID");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue