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:
Carlos Ruiz 2021-07-27 20:11:07 +02:00 committed by GitHub
parent 40e411f693
commit 42a4ccd93b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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());