Merge 2998dd9be51a
This commit is contained in:
commit
4be5c4a9da
|
@ -24,7 +24,7 @@ CREATE OR REPLACE VIEW AD_FIELD_V AS
|
|||
f.seqnogrid,
|
||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||
c.FormatPattern
|
||||
c.FormatPattern, f.isadvancedfield
|
||||
FROM AD_FIELD f
|
||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||
|
|
|
@ -23,7 +23,7 @@ CREATE OR REPLACE VIEW AD_FIELD_VT AS
|
|||
f.seqnogrid,
|
||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||
c.FormatPattern
|
||||
c.FormatPattern, f.isadvancedfield
|
||||
FROM AD_FIELD f
|
||||
INNER JOIN AD_FIELD_TRL trl ON (f.AD_Field_ID = trl.AD_Field_ID)
|
||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||
|
|
|
@ -1,30 +1,26 @@
|
|||
CREATE OR REPLACE VIEW ad_field_v AS
|
||||
SELECT t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id,
|
||||
f.name, f.description, f.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno,
|
||||
f.sortno, f.issameline, f.isheading, f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield,
|
||||
f.obscuretype, c.columnname, c.columnsql, c.fieldlength, c.vformat,
|
||||
COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||
CREATE OR REPLACE VIEW adempiere.ad_field_v AS
|
||||
SELECT t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, f.name, f.description,
|
||||
f.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno, f.issameline, f.isheading,
|
||||
f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype, c.columnname, c.columnsql,
|
||||
c.fieldlength, c.vformat, COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||
COALESCE(f.Isalwaysupdateable , C.Isalwaysupdateable) As Isalwaysupdateable,
|
||||
COALESCE(f.Readonlylogic, c.Readonlylogic ) As Readonlylogic,
|
||||
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable,
|
||||
c.isencrypted AS isencryptedcolumn, c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax,
|
||||
fg.name AS fieldgroup, vr.code AS validationcode, f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fg.name AS fieldgroup,
|
||||
vr.code AS validationcode, f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||
COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
||||
f.isdisplayedgrid,
|
||||
f.seqnogrid,
|
||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||
c.FormatPattern
|
||||
FROM ad_field f
|
||||
JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||
LEFT JOIN ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||
LEFT JOIN ad_column c ON f.ad_column_id = c.ad_column_id
|
||||
JOIN ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||
LEFT JOIN ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||
c.formatpattern, f.isadvancedfield
|
||||
FROM adempiere.ad_field f
|
||||
JOIN adempiere.ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||
LEFT JOIN adempiere.ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||
LEFT JOIN adempiere.ad_column c ON f.ad_column_id = c.ad_column_id
|
||||
JOIN adempiere.ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||
LEFT JOIN adempiere.ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar;
|
|
@ -1,28 +1,29 @@
|
|||
CREATE OR REPLACE VIEW ad_field_vt AS
|
||||
SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, trl.name, trl.description,
|
||||
trl.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno, f.issameline, f.isheading, f.isfieldonly, f.isreadonly,
|
||||
f.isencrypted AS isencryptedfield, f.obscuretype, c.columnname, c.columnsql, c.fieldlength, c.vformat, COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue,
|
||||
c.iskey, c.isparent, COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout, COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||
COALESCE(f.ad_val_rule_id,c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||
COALESCE(f.Isalwaysupdateable,C.Isalwaysupdateable) As Isalwaysupdateable,
|
||||
COALESCE(f.Readonlylogic,c.Readonlylogic) As Readonlylogic,
|
||||
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable,
|
||||
c.isencrypted AS isencryptedcolumn, c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode,
|
||||
f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault, COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||
COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
||||
f.isdisplayedgrid,
|
||||
f.seqnogrid,
|
||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||
c.FormatPattern
|
||||
FROM ad_field f
|
||||
JOIN ad_field_trl trl ON f.ad_field_id = trl.ad_field_id
|
||||
JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||
LEFT JOIN ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||
LEFT JOIN ad_fieldgroup_trl fgt ON f.ad_fieldgroup_id = fgt.ad_fieldgroup_id AND trl.ad_language::text = fgt.ad_language::text
|
||||
LEFT JOIN ad_column c ON f.ad_column_id = c.ad_column_id
|
||||
JOIN ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||
LEFT JOIN ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||
CREATE OR REPLACE VIEW adempiere.ad_field_vt AS
|
||||
SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id,
|
||||
trl.name, trl.description, trl.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno,
|
||||
f.issameline, f.isheading, f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype,
|
||||
c.columnname, c.columnsql, c.fieldlength, c.vformat,
|
||||
COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode,
|
||||
f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||
c.formatpattern, f.isadvancedfield
|
||||
FROM adempiere.ad_field f
|
||||
JOIN adempiere.ad_field_trl trl ON f.ad_field_id = trl.ad_field_id
|
||||
JOIN adempiere.ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||
LEFT JOIN adempiere.ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||
LEFT JOIN adempiere.ad_fieldgroup_trl fgt ON f.ad_fieldgroup_id = fgt.ad_fieldgroup_id AND trl.ad_language::text = fgt.ad_language::text
|
||||
LEFT JOIN adempiere.ad_column c ON f.ad_column_id = c.ad_column_id
|
||||
JOIN adempiere.ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||
LEFT JOIN adempiere.ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar;
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
-- Aug 6, 2013 1:35:12 PM COT
|
||||
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=158, IsToolbarButton='N',Updated=TO_DATE('2013-08-06 13:35:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200990
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 1:36:09 PM COT
|
||||
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||
INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,IsActive,AD_Org_ID,AD_Client_ID) VALUES ('AD_User.AD_User_ID IN (SELECT AD_User_ID FROM AD_User_Roles WHERE IsActive=''Y'' AND AD_User_Roles.AD_Client_ID=@#AD_Client_ID@)',200052,'D','AD_User of Client','S','db84ffe3-27c1-4a81-85f5-dcb3effecadd',100,100,TO_DATE('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),'Y',0,0)
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 1:36:29 PM COT
|
||||
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=200052, IsToolbarButton='N',Updated=TO_DATE('2013-08-06 13:36:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200991
|
||||
;
|
||||
|
||||
SELECT register_migration_script('20130608133825_IDEMPIERE-1138.sql') FROM dual
|
||||
;
|
|
@ -114,10 +114,6 @@ UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:15:16','YYYY-MM
|
|||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4771
|
||||
;
|
||||
|
||||
-- Jul 5, 2013 10:20:07 PM COT
|
||||
UPDATE R_RequestProcessor SET DateLastRun=TO_DATE('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'), DateNextRun=TO_DATE('2013-07-05 22:35:07','YYYY-MM-DD HH24:MI:SS'),Updated=TO_DATE('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE R_RequestProcessor_ID=1000003
|
||||
;
|
||||
|
||||
-- Jul 5, 2013 10:29:14 PM COT
|
||||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:29:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200972
|
||||
;
|
||||
|
|
|
@ -474,11 +474,6 @@ UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=1, ColumnSpan=3, NumLin
|
|||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1, ColumnSpan=2,Updated=TO_DATE('2013-07-19 17:12:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201831
|
||||
;
|
||||
|
||||
-- Jul 22, 2013 11:48:27 AM MYT
|
||||
-- IDEMPIERE-1042 Role Data Access
|
||||
UPDATE AD_SysConfig SET Value='IDEMPIERE-528 Determine Zoom window depending on record',Updated=TO_DATE('2013-07-22 11:48:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50003
|
||||
;
|
||||
|
||||
-- Jul 22, 2013 11:50:07 AM MYT
|
||||
-- IDEMPIERE-528 Determine Zoom window depending on record
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200066,210660,'Y','N','Y',0,'N',60,'Y',10,'N','N','Y','45deb4e7-a2a4-4aa5-9f32-05c2066e72cd','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_DATE('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',469)
|
||||
|
|
|
@ -0,0 +1,517 @@
|
|||
-- Jul 31, 2013 7:16:30 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAdvancedField',202574,'Advanced Field','Advanced Field','1ab899a3-278e-418a-b84e-fe5fc3f263b6',TO_DATE('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:16:30 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202574 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:17:38 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,107,210679,'N','N','N',0,'N',1,'N',20,'N','N','Y','45c86144-67dc-487b-a761-54774dd34388','Y','IsAdvancedField','N','Advanced Field','Y',TO_DATE('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202574,'N')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:17:38 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210679 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:17:51 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
ALTER TABLE AD_Field ADD IsAdvancedField CHAR(1) DEFAULT 'N' CHECK (IsAdvancedField IN ('Y','N'))
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:18:37 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',107,1,'N','N',210679,400,'Y',202362,'N','D','Advanced Field','153209a5-5587-49dc-b587-51f236ebfd53','Y','N',100,0,TO_DATE('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:18:37 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=202362 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=240, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200350
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200348
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=270,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200349
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=280,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13425
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=290,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200837
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54402
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54401
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200838
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200834
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13424
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62468
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53280
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200836
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200835
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=136
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=400,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=139
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:20:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAccessAdvanced',202575,'Access Advanced ','Access Advanced ','2977102f-1399-4824-ba24-2b0c902aed64',TO_DATE('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:20:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202575 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:22:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,156,210680,'N','N','N',0,'N',1,'N',20,'N','N','Y','1827e3d1-f438-4d13-8162-1288ab34d2da','Y','IsAccessAdvanced','Y','Access Advanced ','Y',TO_DATE('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202575,'N')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:22:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210680 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:22:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
ALTER TABLE AD_Role ADD IsAccessAdvanced CHAR(1) DEFAULT 'N' CHECK (IsAccessAdvanced IN ('Y','N'))
|
||||
;
|
||||
|
||||
|
||||
-- Jul 31, 2013 7:23:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',119,1,'N','N',210680,480,'Y',202366,'N','D','Access Advanced ','f1ae60d9-680d-4764-a54e-2de52d65310e','Y','N',100,0,TO_DATE('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:23:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=202366 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Aug 1, 2013 3:19:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET DisplayLogic='@IsMasterRole@=N',Updated=TO_DATE('2013-08-01 15:19:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=142
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8343
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=140
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=141
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=280, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=290, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200071
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50168
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50178
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50176
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50170
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50174
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50173
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50172
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50175
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50169
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50177
|
||||
;
|
||||
|
||||
update ad_tab set isadvancedtab='N' where isadvancedtab='Y'
|
||||
;
|
||||
|
||||
CREATE OR REPLACE VIEW AD_FIELD_V AS
|
||||
SELECT t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID,
|
||||
f.NAME, f.Description, f.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength,
|
||||
f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly,
|
||||
f.IsEncrypted AS IsEncryptedField, f.ObscureType,
|
||||
c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat,
|
||||
COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue,
|
||||
c.IsKey, c.IsParent,
|
||||
COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory,
|
||||
c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID,
|
||||
c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID,
|
||||
COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) AS AD_Val_Rule_ID, c.AD_Process_ID,
|
||||
COALESCE(f.Isalwaysupdateable , C.Isalwaysupdateable) As Isalwaysupdateable,
|
||||
COALESCE(f.Readonlylogic, c.Readonlylogic ) As Readonlylogic,
|
||||
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.IsEncrypted AS IsEncryptedColumn,
|
||||
c.IsSelectionColumn,
|
||||
tbl.TableName, c.ValueMin, c.ValueMax,
|
||||
fg.NAME AS FieldGroup, vr.Code AS ValidationCode,
|
||||
f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault,
|
||||
COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass,
|
||||
c.IsAutocomplete, COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
||||
f.isdisplayedgrid,
|
||||
f.seqnogrid,
|
||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||
c.FormatPattern, f.isadvancedfield
|
||||
FROM AD_FIELD f
|
||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||
LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID)
|
||||
INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID)
|
||||
LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID = COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID))
|
||||
WHERE f.IsActive = 'Y'
|
||||
AND c.IsActive = 'Y'
|
||||
;
|
||||
|
||||
CREATE OR REPLACE VIEW AD_FIELD_VT AS
|
||||
SELECT trl.AD_LANGUAGE, t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID,
|
||||
trl.NAME, trl.Description, trl.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength,
|
||||
f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly,
|
||||
f.IsEncrypted AS IsEncryptedField, f.ObscureType,
|
||||
c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat,
|
||||
COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue,
|
||||
c.IsKey, c.IsParent,
|
||||
COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory,
|
||||
c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID,
|
||||
c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID,
|
||||
COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) as AD_Val_Rule_ID, c.AD_Process_ID,
|
||||
COALESCE(f.Isalwaysupdateable , C.Isalwaysupdateable) As Isalwaysupdateable,
|
||||
COALESCE(f.Readonlylogic, c.Readonlylogic ) As Readonlylogic,
|
||||
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.IsEncrypted AS IsEncryptedColumn, c.IsSelectionColumn,
|
||||
tbl.TableName, c.ValueMin, c.ValueMax,
|
||||
fgt.NAME AS FieldGroup, vr.Code AS ValidationCode,
|
||||
f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault,
|
||||
COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass,
|
||||
c.IsAutocomplete, COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
||||
f.isdisplayedgrid,
|
||||
f.seqnogrid,
|
||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||
c.FormatPattern, f.isadvancedfield
|
||||
FROM AD_FIELD f
|
||||
INNER JOIN AD_FIELD_TRL trl ON (f.AD_Field_ID = trl.AD_Field_ID)
|
||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||
LEFT OUTER JOIN AD_FIELDGROUP_TRL fgt ON
|
||||
(f.AD_FieldGroup_ID = fgt.AD_FieldGroup_ID AND trl.AD_LANGUAGE=fgt.AD_LANGUAGE)
|
||||
LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID)
|
||||
INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID)
|
||||
LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID=COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID))
|
||||
WHERE f.IsActive = 'Y'
|
||||
AND c.IsActive = 'Y'
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:52:33 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Role SET IsAccessAdvanced='Y',Updated=TO_DATE('2013-08-06 14:52:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID IN (0,102)
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:23:57 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:23:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10318
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:24:26 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:24:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11024
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:24:51 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:24:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54238
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:25:22 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:25:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54680
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:25:56 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:25:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200948
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:26:01 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:26:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200949
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:26:43 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:26:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56981
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:27:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:27:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:06 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50003
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:09 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50004
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:13 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50002
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsInsertRecord='N', IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50001
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:32 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50008
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:41 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50005
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:45 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50006
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=505
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=369
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:42 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=150
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:46 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=126
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:52 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=310
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:30:30 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:30:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200406
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:30:51 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:30:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53066
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:30:54 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:30:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53067
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:31:08 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:31:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200032
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:31:34 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:31:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5028
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:31:37 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:31:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5029
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:00 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5040
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:03 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200003
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:36 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5053
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:50 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11252
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200858
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:13 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200855
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:18 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5054
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:21 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200849
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:26 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200851
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:29 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200852
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:34 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200854
|
||||
;
|
||||
|
||||
SELECT register_migration_script('20130801160000_IDEMPIERE-1160.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,17 @@
|
|||
-- Aug 6, 2013 1:35:12 PM COT
|
||||
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=158, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-08-06 13:35:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200990
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 1:36:09 PM COT
|
||||
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||
INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,IsActive,AD_Org_ID,AD_Client_ID) VALUES ('AD_User.AD_User_ID IN (SELECT AD_User_ID FROM AD_User_Roles WHERE IsActive=''Y'' AND AD_User_Roles.AD_Client_ID=@#AD_Client_ID@)',200052,'D','AD_User of Client','S','db84ffe3-27c1-4a81-85f5-dcb3effecadd',100,100,TO_TIMESTAMP('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),'Y',0,0)
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 1:36:29 PM COT
|
||||
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=200052, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-08-06 13:36:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200991
|
||||
;
|
||||
|
||||
SELECT register_migration_script('20130608133825_IDEMPIERE-1138.sql') FROM dual
|
||||
;
|
|
@ -114,10 +114,6 @@ UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:15:16','YY
|
|||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4771
|
||||
;
|
||||
|
||||
-- Jul 5, 2013 10:20:07 PM COT
|
||||
UPDATE R_RequestProcessor SET DateLastRun=TO_TIMESTAMP('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'), DateNextRun=TO_TIMESTAMP('2013-07-05 22:35:07','YYYY-MM-DD HH24:MI:SS'),Updated=TO_TIMESTAMP('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE R_RequestProcessor_ID=1000003
|
||||
;
|
||||
|
||||
-- Jul 5, 2013 10:29:14 PM COT
|
||||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:29:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200972
|
||||
;
|
||||
|
|
|
@ -469,11 +469,6 @@ UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=1, ColumnSpan=3, NumLin
|
|||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-19 17:12:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201831
|
||||
;
|
||||
|
||||
-- Jul 22, 2013 11:48:27 AM MYT
|
||||
-- IDEMPIERE-1042 Role Data Access
|
||||
UPDATE AD_SysConfig SET Value='IDEMPIERE-528 Determine Zoom window depending on record',Updated=TO_TIMESTAMP('2013-07-22 11:48:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50003
|
||||
;
|
||||
|
||||
-- Jul 22, 2013 11:50:07 AM MYT
|
||||
-- IDEMPIERE-528 Determine Zoom window depending on record
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200066,210660,'Y','N','Y',0,'N',60,'Y',10,'N','N','Y','45deb4e7-a2a4-4aa5-9f32-05c2066e72cd','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_TIMESTAMP('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',469)
|
||||
|
|
|
@ -0,0 +1,500 @@
|
|||
-- Jul 31, 2013 7:16:30 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAdvancedField',202574,'Advanced Field','Advanced Field','1ab899a3-278e-418a-b84e-fe5fc3f263b6',TO_TIMESTAMP('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:16:30 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202574 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:17:38 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,107,210679,'N','N','N',0,'N',1,'N',20,'N','N','Y','45c86144-67dc-487b-a761-54774dd34388','Y','IsAdvancedField','N','Advanced Field','Y',TO_TIMESTAMP('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202574,'N')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:17:38 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210679 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:17:51 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
ALTER TABLE AD_Field ADD COLUMN IsAdvancedField CHAR(1) DEFAULT 'N' CHECK (IsAdvancedField IN ('Y','N'))
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:18:37 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',107,1,'N','N',210679,400,'Y',202362,'N','D','Advanced Field','153209a5-5587-49dc-b587-51f236ebfd53','Y','N',100,0,TO_TIMESTAMP('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:18:37 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=202362 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=240, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200350
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200348
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=270,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200349
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=280,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13425
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=290,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200837
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54402
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54401
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200838
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200834
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13424
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62468
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53280
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200836
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200835
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=136
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:19:10 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=400,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=139
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:20:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAccessAdvanced',202575,'Access Advanced ','Access Advanced ','2977102f-1399-4824-ba24-2b0c902aed64',TO_TIMESTAMP('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:20:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202575 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:22:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,156,210680,'N','N','N',0,'N',1,'N',20,'N','N','Y','1827e3d1-f438-4d13-8162-1288ab34d2da','Y','IsAccessAdvanced','Y','Access Advanced ','Y',TO_TIMESTAMP('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202575,'N')
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:22:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210680 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:22:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
ALTER TABLE AD_Role ADD COLUMN IsAccessAdvanced CHAR(1) DEFAULT 'N' CHECK (IsAccessAdvanced IN ('Y','N'))
|
||||
;
|
||||
|
||||
|
||||
-- Jul 31, 2013 7:23:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',119,1,'N','N',210680,480,'Y',202366,'N','D','Access Advanced ','f1ae60d9-680d-4764-a54e-2de52d65310e','Y','N',100,0,TO_TIMESTAMP('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||
;
|
||||
|
||||
-- Jul 31, 2013 7:23:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=202366 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Aug 1, 2013 3:19:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET DisplayLogic='@IsMasterRole@=N',Updated=TO_TIMESTAMP('2013-08-01 15:19:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=142
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8343
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=140
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:44:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=141
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=280, IsDisplayed='Y', XPosition=2,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=290, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200071
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50168
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50178
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50176
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50170
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50174
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50173
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50172
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50175
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50169
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:45:24 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50177
|
||||
;
|
||||
|
||||
update ad_tab set isadvancedtab='N' where isadvancedtab='Y'
|
||||
;
|
||||
|
||||
CREATE OR REPLACE VIEW adempiere.ad_field_v AS
|
||||
SELECT t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, f.name, f.description,
|
||||
f.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno, f.issameline, f.isheading,
|
||||
f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype, c.columnname, c.columnsql,
|
||||
c.fieldlength, c.vformat, COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fg.name AS fieldgroup,
|
||||
vr.code AS validationcode, f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||
c.formatpattern, f.isadvancedfield
|
||||
FROM adempiere.ad_field f
|
||||
JOIN adempiere.ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||
LEFT JOIN adempiere.ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||
LEFT JOIN adempiere.ad_column c ON f.ad_column_id = c.ad_column_id
|
||||
JOIN adempiere.ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||
LEFT JOIN adempiere.ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar
|
||||
;
|
||||
|
||||
CREATE OR REPLACE VIEW adempiere.ad_field_vt AS
|
||||
SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id,
|
||||
trl.name, trl.description, trl.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno,
|
||||
f.issameline, f.isheading, f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype,
|
||||
c.columnname, c.columnsql, c.fieldlength, c.vformat,
|
||||
COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode,
|
||||
f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||
c.formatpattern, f.isadvancedfield
|
||||
FROM adempiere.ad_field f
|
||||
JOIN adempiere.ad_field_trl trl ON f.ad_field_id = trl.ad_field_id
|
||||
JOIN adempiere.ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||
LEFT JOIN adempiere.ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||
LEFT JOIN adempiere.ad_fieldgroup_trl fgt ON f.ad_fieldgroup_id = fgt.ad_fieldgroup_id AND trl.ad_language::text = fgt.ad_language::text
|
||||
LEFT JOIN adempiere.ad_column c ON f.ad_column_id = c.ad_column_id
|
||||
JOIN adempiere.ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||
LEFT JOIN adempiere.ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 2:52:33 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Role SET IsAccessAdvanced='Y',Updated=TO_TIMESTAMP('2013-08-06 14:52:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID IN (0,102)
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:23:57 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:23:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10318
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:24:26 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:24:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11024
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:24:51 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:24:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54238
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:25:22 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:25:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54680
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:25:56 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:25:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200948
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:26:01 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:26:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200949
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:26:43 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:26:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56981
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:27:19 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:27:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:06 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50003
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:09 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50004
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:13 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50002
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:23 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsInsertRecord='N', IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50001
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:32 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50008
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:41 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50005
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:28:45 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50006
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=505
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:25 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=369
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:42 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=150
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:46 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=126
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:29:52 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=310
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:30:30 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:30:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200406
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:30:51 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:30:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53066
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:30:54 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:30:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53067
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:31:08 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:31:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200032
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:31:34 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:31:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5028
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:31:37 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:31:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5029
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:00 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5040
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:03 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200003
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:36 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5053
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:32:50 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11252
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:04 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200858
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:13 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200855
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:18 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5054
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:21 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200849
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:26 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200851
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:29 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200852
|
||||
;
|
||||
|
||||
-- Aug 6, 2013 3:33:34 PM COT
|
||||
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200854
|
||||
;
|
||||
|
||||
SELECT register_migration_script('20130801160000_IDEMPIERE-1160.sql') FROM dual
|
||||
;
|
|
@ -56,14 +56,24 @@ public class GridFieldVO implements Serializable
|
|||
public static String getSQL (Properties ctx)
|
||||
{
|
||||
// IsActive is part of View
|
||||
MRole role = MRole.getDefault(ctx, true);
|
||||
String advancedFilter=" AND IsAdvancedField='N' ";
|
||||
StringBuilder sql;
|
||||
if (!Env.isBaseLanguage(ctx, "AD_Tab"))
|
||||
if (!Env.isBaseLanguage(ctx, "AD_Tab")){
|
||||
sql = new StringBuilder("SELECT * FROM AD_Field_vt WHERE AD_Tab_ID=?")
|
||||
.append(" AND AD_Language='" + Env.getAD_Language(ctx) + "'")
|
||||
.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
||||
else
|
||||
sql = new StringBuilder("SELECT * FROM AD_Field_v WHERE AD_Tab_ID=?")
|
||||
.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
||||
.append(" AND AD_Language='" + Env.getAD_Language(ctx) + "'");
|
||||
if (!role.isAccessAdvanced()) {
|
||||
sql.append(advancedFilter);
|
||||
}
|
||||
sql.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
||||
}
|
||||
else{
|
||||
sql = new StringBuilder("SELECT * FROM AD_Field_v WHERE AD_Tab_ID=?");
|
||||
if (!role.isAccessAdvanced()) {
|
||||
sql.append(advancedFilter);
|
||||
}
|
||||
sql.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
||||
}
|
||||
return sql.toString();
|
||||
} // getSQL
|
||||
|
||||
|
|
|
@ -370,13 +370,26 @@ public class GridTabVO implements Evaluatee, Serializable
|
|||
+ " AND ce.AD_Field_ID IS NULL "
|
||||
+ " AND ce.ASP_Status = 'H')"; // Hide
|
||||
// View only returns IsActive='Y'
|
||||
String sql = "SELECT * FROM AD_Tab_v WHERE AD_Window_ID=?"
|
||||
+ ASPFilter + " ORDER BY SeqNo";
|
||||
if (!Env.isBaseLanguage(ctx, "AD_Window"))
|
||||
sql = "SELECT * FROM AD_Tab_vt WHERE AD_Window_ID=?"
|
||||
+ " AND AD_Language='" + Env.getAD_Language(ctx) + "'"
|
||||
+ ASPFilter + " ORDER BY SeqNo";
|
||||
return sql;
|
||||
MRole role = MRole.getDefault(ctx, true);
|
||||
String advancedFilter=" AND IsAdvancedTab='N' ";
|
||||
StringBuilder sql;
|
||||
if (!Env.isBaseLanguage(ctx, "AD_Window")) {
|
||||
sql = new StringBuilder( "SELECT * FROM AD_Tab_vt WHERE AD_Window_ID=?");
|
||||
sql.append(" AND AD_Language='" + Env.getAD_Language(ctx) + "'")
|
||||
.append(ASPFilter);
|
||||
if (!role.isAccessAdvanced()) {
|
||||
sql.append(advancedFilter);
|
||||
}
|
||||
sql.append(" ORDER BY SeqNo");
|
||||
}else{
|
||||
sql = new StringBuilder("SELECT * FROM AD_Tab_v WHERE AD_Window_ID=?");
|
||||
sql.append(ASPFilter) ;
|
||||
if (!role.isAccessAdvanced()) {
|
||||
sql.append(advancedFilter);
|
||||
}
|
||||
sql.append(" ORDER BY SeqNo");
|
||||
}
|
||||
return sql.toString();
|
||||
} // getSQL
|
||||
|
||||
|
||||
|
|
|
@ -313,6 +313,15 @@ public interface I_AD_Field
|
|||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name IsAdvancedField */
|
||||
public static final String COLUMNNAME_IsAdvancedField = "IsAdvancedField";
|
||||
|
||||
/** Set IsAdvancedField */
|
||||
public void setIsAdvancedField (boolean IsAdvancedField);
|
||||
|
||||
/** Get IsAdvancedField */
|
||||
public boolean isAdvancedField();
|
||||
|
||||
/** Column name IsAllowCopy */
|
||||
public static final String COLUMNNAME_IsAllowCopy = "IsAllowCopy";
|
||||
|
||||
|
|
|
@ -300,6 +300,15 @@ public interface I_AD_Role
|
|||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name IsAccessAdvanced */
|
||||
public static final String COLUMNNAME_IsAccessAdvanced = "IsAccessAdvanced";
|
||||
|
||||
/** Set IsAccessAdvanced */
|
||||
public void setIsAccessAdvanced (boolean IsAccessAdvanced);
|
||||
|
||||
/** Get IsAccessAdvanced */
|
||||
public boolean isAccessAdvanced();
|
||||
|
||||
/** Column name IsAccessAllOrgs */
|
||||
public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs";
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20130626L;
|
||||
private static final long serialVersionUID = 20130801L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName)
|
||||
|
@ -449,6 +449,27 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set IsAdvancedField.
|
||||
@param IsAdvancedField IsAdvancedField */
|
||||
public void setIsAdvancedField (boolean IsAdvancedField)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsAdvancedField, Boolean.valueOf(IsAdvancedField));
|
||||
}
|
||||
|
||||
/** Get IsAdvancedField.
|
||||
@return IsAdvancedField */
|
||||
public boolean isAdvancedField ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsAdvancedField);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** IsAllowCopy AD_Reference_ID=319 */
|
||||
public static final int ISALLOWCOPY_AD_Reference_ID=319;
|
||||
/** Yes = Y */
|
||||
|
|
|
@ -32,7 +32,7 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20130626L;
|
||||
private static final long serialVersionUID = 20130801L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName)
|
||||
|
@ -555,6 +555,27 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
|||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Set IsAccessAdvanced .
|
||||
@param IsAccessAdvanced IsAccessAdvanced */
|
||||
public void setIsAccessAdvanced (boolean IsAccessAdvanced)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsAccessAdvanced, Boolean.valueOf(IsAccessAdvanced));
|
||||
}
|
||||
|
||||
/** Get IsAccessAdvanced .
|
||||
@return IsAccessAdvanced */
|
||||
public boolean isAccessAdvanced ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsAccessAdvanced);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Access all Orgs.
|
||||
@param IsAccessAllOrgs
|
||||
Access all Organizations (no org access control) of the client
|
||||
|
|
|
@ -128,9 +128,6 @@ public final class Ini implements Serializable
|
|||
/** Show Acct Tabs */
|
||||
public static final String P_SHOW_ACCT = "ShowAcct";
|
||||
private static final boolean DEFAULT_SHOW_ACCT = true;
|
||||
/** Show Advanced Tabs */
|
||||
public static final String P_SHOW_ADVANCED = "ShowAdvanced";
|
||||
private static final boolean DEFAULT_SHOW_ADVANCED = true;
|
||||
/** Show Translation Tabs */
|
||||
public static final String P_SHOW_TRL = "ShowTrl";
|
||||
private static final boolean DEFAULT_SHOW_TRL = false;
|
||||
|
@ -196,7 +193,7 @@ public final class Ini implements Serializable
|
|||
P_UI_LOOK, P_UI_THEME, /* P_UI_FLAT,*/
|
||||
P_A_COMMIT, P_A_LOGIN, P_A_NEW,
|
||||
P_ADEMPIERESYS, P_LOGMIGRATIONSCRIPT, P_SHOW_ACCT, P_SHOW_TRL,
|
||||
P_SHOW_ADVANCED, P_CACHE_WINDOW,
|
||||
P_CACHE_WINDOW,
|
||||
P_CONTEXT, P_TEMP_DIR,
|
||||
P_ROLE, P_CLIENT, P_ORG, P_PRINTER, P_WAREHOUSE, P_TODAY,
|
||||
P_PRINTPREVIEW,
|
||||
|
@ -214,7 +211,7 @@ public final class Ini implements Serializable
|
|||
DEFAULT_UI_LOOK, DEFAULT_UI_THEME, /* DEFAULT_UI_FLAT?"Y":"N", */
|
||||
DEFAULT_A_COMMIT?"Y":"N", DEFAULT_A_LOGIN?"Y":"N", DEFAULT_A_NEW?"Y":"N",
|
||||
DEFAULT_ADEMPIERESYS?"Y":"N", DEFAULT_LOGMIGRATIONSCRIPT?"Y":"N", DEFAULT_SHOW_ACCT?"Y":"N", DEFAULT_SHOW_TRL?"Y":"N",
|
||||
DEFAULT_SHOW_ADVANCED?"Y":"N", DEFAULT_CACHE_WINDOW?"Y":"N",
|
||||
DEFAULT_CACHE_WINDOW?"Y":"N",
|
||||
DEFAULT_CONTEXT, DEFAULT_TEMP_DIR,
|
||||
DEFAULT_ROLE, DEFAULT_CLIENT, DEFAULT_ORG, DEFAULT_PRINTER, DEFAULT_WAREHOUSE, DEFAULT_TODAY.toString(),
|
||||
DEFAULT_PRINTPREVIEW?"Y":"N",
|
||||
|
|
|
@ -838,7 +838,7 @@ public class Login
|
|||
else
|
||||
Env.setContext(m_ctx, "#ShowAcct", "N");
|
||||
Env.setContext(m_ctx, "#ShowTrl", Ini.getProperty(Ini.P_SHOW_TRL));
|
||||
Env.setContext(m_ctx, "#ShowAdvanced", Ini.getProperty(Ini.P_SHOW_ADVANCED));
|
||||
Env.setContext(m_ctx, "#ShowAdvanced", MRole.getDefault().isAccessAdvanced());
|
||||
|
||||
String retValue = "";
|
||||
int AD_Client_ID = Env.getContextAsInt(m_ctx, "#AD_Client_ID");
|
||||
|
|
|
@ -74,8 +74,12 @@ public class BroadcastMsgUtil
|
|||
int[] userIDs = DB.getIDsEx(null, sql);
|
||||
|
||||
for (int userID : userIDs) {
|
||||
MUser user = MUser.get(Env.getCtx(), userID);
|
||||
if (! user.isActive())
|
||||
continue;
|
||||
MNote note = new MNote(Env.getCtx(), 0, trxName);
|
||||
note.setClientOrg(MUser.get(Env.getCtx(), userID).getAD_Client_ID(), 0);
|
||||
if (MBroadcastMessage.TARGET_Everybody.equals(mbMessage.getTarget()))
|
||||
note.setClientOrg(user.getAD_Client_ID(), 0);
|
||||
note.setAD_BroadcastMessage_ID(messageID);
|
||||
note.setAD_User_ID(userID);
|
||||
note.setAD_Message_ID(0);
|
||||
|
|
|
@ -461,8 +461,7 @@ public class AcctViewer extends CFrame
|
|||
boolean visible = m_data.documentQuery && tabbedPane.getSelectedIndex() == 1;
|
||||
bRePost.setVisible(visible);
|
||||
bExport.setVisible(tabbedPane.getSelectedIndex() == 1);
|
||||
if (Ini.isPropertyBool(Ini.P_SHOW_ADVANCED))
|
||||
forcePost.setVisible(visible);
|
||||
forcePost.setVisible(visible);
|
||||
} // stateChanged
|
||||
|
||||
|
||||
|
|
|
@ -158,7 +158,6 @@ public final class Preference extends CDialog
|
|||
private CCheckBox storePassword = new CCheckBox();
|
||||
private CCheckBox showTrl = new CCheckBox();
|
||||
private CCheckBox showAcct = new CCheckBox();
|
||||
private CCheckBox showAdvanced = new CCheckBox();
|
||||
private CCheckBox cacheWindow = new CCheckBox();
|
||||
private CLabel lPrinter = new CLabel();
|
||||
private CPrinter fPrinter = new CPrinter();
|
||||
|
@ -234,8 +233,6 @@ public final class Preference extends CDialog
|
|||
showTrl.setToolTipText(Msg.getMsg(Env.getCtx(), "ShowTrlTab", false));
|
||||
showAcct.setText(Msg.getMsg(Env.getCtx(), "ShowAcctTab", true));
|
||||
showAcct.setToolTipText(Msg.getMsg(Env.getCtx(), "ShowAcctTab", false));
|
||||
showAdvanced.setText(Msg.getMsg(Env.getCtx(), "ShowAdvancedTab", true));
|
||||
showAdvanced.setToolTipText(Msg.getMsg(Env.getCtx(), "ShowAdvancedTab", false));
|
||||
cacheWindow.setText(Msg.getMsg(Env.getCtx(), "CacheWindow", true));
|
||||
cacheWindow.setToolTipText(Msg.getMsg(Env.getCtx(), "CacheWindow", false));
|
||||
lPrinter.setText(Msg.getMsg(Env.getCtx(), "Printer"));
|
||||
|
@ -272,7 +269,6 @@ public final class Preference extends CDialog
|
|||
windowPanel.setLayout(new GridLayout(4, 2));
|
||||
windowPanel.add(showAcct);showAcct.setBorder(insetBorder);
|
||||
windowPanel.add(showTrl);showTrl.setBorder(insetBorder);
|
||||
windowPanel.add(showAdvanced);showAdvanced.setBorder(insetBorder);
|
||||
windowPanel.add(autoCommit);autoCommit.setBorder(insetBorder);
|
||||
windowPanel.add(autoNew);autoNew.setBorder(insetBorder);
|
||||
windowPanel.add(cacheWindow);cacheWindow.setBorder(insetBorder);
|
||||
|
@ -495,7 +491,6 @@ public final class Preference extends CDialog
|
|||
}
|
||||
// Show Trl/Advanced Tab
|
||||
showTrl.setSelected(Ini.isPropertyBool(Ini.P_SHOW_TRL));
|
||||
showAdvanced.setSelected(Ini.isPropertyBool(Ini.P_SHOW_ADVANCED));
|
||||
|
||||
cacheWindow.setSelected(Ini.isCacheWindow());
|
||||
|
||||
|
@ -571,9 +566,6 @@ public final class Preference extends CDialog
|
|||
// Show Trl Tab
|
||||
Ini.setProperty(Ini.P_SHOW_TRL, (showTrl.isSelected()));
|
||||
Env.setContext(Env.getCtx(), "#ShowTrl", (showTrl.isSelected()));
|
||||
// Show Advanced Tab
|
||||
Ini.setProperty(Ini.P_SHOW_ADVANCED, (showAdvanced.isSelected()));
|
||||
Env.setContext(Env.getCtx(), "#ShowAdvanced", (showAdvanced.isSelected()));
|
||||
|
||||
Ini.setProperty(Ini.P_CACHE_WINDOW, cacheWindow.isSelected());
|
||||
|
||||
|
|
|
@ -222,7 +222,6 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
|
|||
//enable full interface, relook into this when doing preference
|
||||
Env.setContext(ctx, "#ShowTrl", true);
|
||||
Env.setContext(ctx, "#ShowAcct", MRole.getDefault().isShowAcct());
|
||||
Env.setContext(ctx, "#ShowAdvanced", true);
|
||||
|
||||
// to reload preferences when the user refresh the browser
|
||||
userPreference = loadUserPreference(Env.getAD_User_ID(ctx));
|
||||
|
|
|
@ -722,8 +722,7 @@ public class WAcctViewer extends Window implements EventListener<Event>
|
|||
bExport.setVisible(tabResult.isSelected());
|
||||
bZoom.setVisible(tabResult.isSelected());
|
||||
|
||||
if (Ini.isPropertyBool(Ini.P_SHOW_ADVANCED))
|
||||
forcePost.setVisible(visible);
|
||||
forcePost.setVisible(visible);
|
||||
} // stateChanged
|
||||
|
||||
/**
|
||||
|
|
|
@ -182,7 +182,8 @@ public class BroadcastMessageWindow extends Window implements IBroadcastMsgPopup
|
|||
for(int i=0; i<mbMessages.size(); i++){
|
||||
if(!mbMessages.get(i).getBroadcastType().equals(MBroadcastMessage.BROADCASTTYPE_Immediate)){
|
||||
MNote note = getMNote(mbMessages.get(i));
|
||||
hashMessages.put(mbMessages.get(i).get_ID(), note.isProcessed());
|
||||
if (note!=null)
|
||||
hashMessages.put(mbMessages.get(i).get_ID(), note.isProcessed());
|
||||
}else{
|
||||
hashMessages.put(mbMessages.get(i).get_ID(), false);
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ public class WSchedule extends Window implements EventListener<Event>
|
|||
{
|
||||
this.getChildren().clear();
|
||||
|
||||
calendarContainer = Executions.createComponents(ThemeManager.getThemeResource("/zul/calendar/calendar.zul"), this, null);
|
||||
calendarContainer = Executions.createComponents(ThemeManager.getThemeResource("zul/calendar/calendar.zul"), this, null);
|
||||
|
||||
borderlayout = (Borderlayout) calendarContainer.getFellow("main");
|
||||
borderlayout.setStyle("position: absolute; width: 98%; margin: auto;");
|
||||
|
|
Loading…
Reference in New Issue