IDEMPIERE-1026 Button on table to create automatically the window (#800)
Set readonly for the common document fields - useful for IDEMPIERE-4858
This commit is contained in:
parent
40e411f693
commit
42a4ccd93b
|
@ -210,6 +210,15 @@ public class TabCreateFields extends SvrProcess
|
||||||
field.setDisplayLogic("@$Element_U2@=Y");
|
field.setDisplayLogic("@$Element_U2@=Y");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set read-only for usual known-fields
|
||||||
|
if ( column.getColumnName().equalsIgnoreCase("IsApproved")
|
||||||
|
|| column.getColumnName().equalsIgnoreCase("DocStatus")
|
||||||
|
|| column.getColumnName().equalsIgnoreCase("Processed")
|
||||||
|
|| column.getColumnName().equalsIgnoreCase("ProcessedOn")
|
||||||
|
|| column.getColumnName().equalsIgnoreCase("Processing")) {
|
||||||
|
field.setIsReadOnly(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (field.save())
|
if (field.save())
|
||||||
{
|
{
|
||||||
addLog(0, null, null, column.getName());
|
addLog(0, null, null, column.getName());
|
||||||
|
|
Loading…
Reference in New Issue