IDEMPIERE-3979 Record Access Exlude problem / fix Physical Inventory problem
This commit is contained in:
parent
a3a5166d1d
commit
426dbd3ef8
|
@ -323,13 +323,18 @@ ContextMenuListener, IZoomableEditor
|
||||||
{
|
{
|
||||||
//if it is problem with record lock, just keep value (no trigger change) and set field readonly
|
//if it is problem with record lock, just keep value (no trigger change) and set field readonly
|
||||||
MRole role = MRole.getDefault(Env.getCtx(), false);
|
MRole role = MRole.getDefault(Env.getCtx(), false);
|
||||||
MColumn col = MColumn.get(Env.getCtx(), gridField.getAD_Column_ID());
|
|
||||||
int refTableID = -1;
|
int refTableID = -1;
|
||||||
|
if (gridTab != null) // fields process para don't represent a column ID
|
||||||
|
{
|
||||||
|
MColumn col = MColumn.get(Env.getCtx(), gridField.getAD_Column_ID());
|
||||||
if (col.get_ID() > 0) {
|
if (col.get_ID() > 0) {
|
||||||
String refTable = col.getReferenceTableName();
|
String refTable = col.getReferenceTableName();
|
||||||
|
if (refTable != null) {
|
||||||
MTable table = MTable.get(Env.getCtx(), refTable);
|
MTable table = MTable.get(Env.getCtx(), refTable);
|
||||||
refTableID = table.getAD_Table_ID();
|
refTableID = table.getAD_Table_ID();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (refTableID > 0 && ! role.isRecordAccess(refTableID, (int)value, false))
|
if (refTableID > 0 && ! role.isRecordAccess(refTableID, (int)value, false))
|
||||||
{
|
{
|
||||||
oldValue = value;
|
oldValue = value;
|
||||||
|
|
Loading…
Reference in New Issue