JIRA TICKET : https://idempiere.atlassian.net/browse/IDEMPIERE-1502 (#1926)
This commit is contained in:
parent
e477dad1c0
commit
00c4fec2f4
|
@ -187,4 +187,14 @@ public class MOrgInfo extends X_AD_OrgInfo implements ImmutablePOSupport
|
||||||
return this;
|
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