Sales Region force to be in * org

Description

I have been experimenting when i select a sales region, no matter what org is in selection, always change it to *. This block the posibility to have diferent sales regions by orgs and filter access in multicountry implementations

I check the code finding in model of this table that this was wrote in class intentionaly. It is in MSalesRegion.java class:

protected boolean beforeSave (boolean newRecord)
{
if (getAD_Org_ID() != 0)
setAD_Org_ID(0);
return true;
} // beforeSave

Environment

None

Activity

Show:
Carlos Ruiz
November 25, 2016, 12:38 PM

Thanks , I don't see a valid reason to have that hardcoded.

Note that in the test data in GardenWorld the sales regions has organization assigned. So, that would mean no collateral effects must be present.

I just dropped that code from MSalesRegion, if somebody needs that control it can be configured in Client Share tab:
http://wiki.idempiere.org/en/Client_(Window_ID-109)#TAB:_Client_Share

Regards,

Carlos Ruiz

Fixed

Assignee

Carlos Ruiz

Reporter

Eduardo Gil

Labels

None

Tested By

None

Priority

Major