IDEMPIERE-136 Tenant base language improvement

This commit is contained in:
Carlos Ruiz 2013-03-27 22:48:29 -05:00
parent ed5fcfd04a
commit 094975caf4
13 changed files with 1953 additions and 126 deletions

View File

@ -0,0 +1,797 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Mar 26, 2013 1:13:43 PM COT
-- IDEMPIERE-136 Tenant base language improvement
INSERT INTO AD_FieldGroup (FieldGroupType,EntityType,IsCollapsedByDefault,Name,AD_FieldGroup_UU,AD_FieldGroup_ID,AD_Client_ID,Created,CreatedBy,Updated,AD_Org_ID,UpdatedBy,IsActive) VALUES ('C','D','Y','Technical','700085b2-dfb4-49ad-85e8-fcc27b9b8f2d',200015,0,TO_DATE('2013-03-26 13:13:42','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-26 13:13:42','YYYY-MM-DD HH24:MI:SS'),0,100,'Y')
;
-- Mar 26, 2013 1:13:43 PM COT
INSERT INTO AD_FieldGroup_Trl (AD_Language,AD_FieldGroup_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_FieldGroup_Trl_UU ) SELECT l.AD_Language,t.AD_FieldGroup_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_FieldGroup t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_FieldGroup_ID=200015 AND NOT EXISTS (SELECT * FROM AD_FieldGroup_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_FieldGroup_ID=t.AD_FieldGroup_ID)
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=200, AD_FieldGroup_ID=200015,Updated=TO_DATE('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11024
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=210, AD_FieldGroup_ID=200015,Updated=TO_DATE('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54238
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=220, AD_FieldGroup_ID=200015,Updated=TO_DATE('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54680
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=230, AD_FieldGroup_ID=200015,Updated=TO_DATE('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200096
;
-- Mar 26, 2013 1:18:52 PM COT
INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Name,AD_Org_ID,AD_Client_ID,Updated,UpdatedBy,Created,IsActive,CreatedBy,Classname,Value) VALUES ('N',200039,'N','N','448fa1f7-ca47-400e-b535-4827974e705d','4','N','N',0,0,'Y','D','Verify Language Configuration',0,0,TO_DATE('2013-03-26 13:18:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-26 13:18:51','YYYY-MM-DD HH24:MI:SS'),'Y',100,'org.idempiere.process.VerifyLanguageConfiguration','VerifyLanguageConfiguration')
;
-- Mar 26, 2013 1:18:52 PM COT
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_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_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200039 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- Mar 26, 2013 1:19:04 PM COT
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,IsCentrallyMaintained,Name,Action,AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200047,'N','N','N',200039,'D','Y','Verify Language Configuration','P','48ebb9f8-189a-4497-8230-d87595f529a5','Y',0,100,TO_DATE('2013-03-26 13:19:03','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-03-26 13:19:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 26, 2013 1:19:04 PM COT
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200047 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Mar 26, 2013 1:19:04 PM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200047, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200047)
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53296
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=161
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=367
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=456
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=501
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=326
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=566
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=392
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=113
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=220
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=351
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=289
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=302
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=303
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200047
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=321
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=461
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53193
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53322
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=383
;
-- Mar 26, 2013 1:21:15 PM COT
INSERT INTO AD_Process (CopyFromProcess,Help,AD_Process_ID,IsDirectPrint,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Description,Name,AD_Org_ID,AD_Client_ID,Updated,UpdatedBy,Created,IsActive,CreatedBy,Classname,Value) VALUES ('N','In order to enable en_US as a translation you can enable any other language as base language.
If you don''t want to have a base language choose a language that won''t be used for login.
If all languages are going to be used as login, create a xx_XX language not login and use it as base.',200040,'N','N','9220f1d3-fb15-4a0b-8d14-ebe57681ff39','4','N','N',0,0,'Y','D','Change Base Language','Change Base Language',0,0,TO_DATE('2013-03-26 13:21:14','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-26 13:21:14','YYYY-MM-DD HH24:MI:SS'),'Y',100,'org.idempiere.process.ChangeBaseLanguage','ChangeBaseLanguage')
;
-- Mar 26, 2013 1:21:15 PM COT
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_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_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200040 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- Mar 26, 2013 1:23:43 PM COT
INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,Description,ValidationType,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200069,'AD_Language NOT System/Base','D','ad7b3ed9-6c90-430e-937f-b42ecd6fe1b0','N','Language not system neither base','T',0,0,100,TO_DATE('2013-03-26 13:23:42','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2013-03-26 13:23:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 26, 2013 1:23:43 PM COT
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200069 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;
-- Mar 26, 2013 1:26:25 PM COT
INSERT INTO AD_Ref_Table (IsValueDisplayed,WhereClause,AD_Reference_ID,AD_Key,AD_Display,EntityType,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,AD_Client_ID,UpdatedBy,AD_Org_ID,IsActive) VALUES ('N','NOT (AD_Language.IsSystemLanguage=''Y'' OR AD_Language.IsBaseLanguage=''Y'')',200069,203,204,'D',111,'5c394413-3298-4a5d-8ea0-1a5e56b7ef7e',100,TO_DATE('2013-03-26 13:26:25','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-26 13:26:25','YYYY-MM-DD HH24:MI:SS'),0,100,0,'Y')
;
-- Mar 26, 2013 1:27:23 PM COT
INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,AD_Reference_Value_ID,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',109,200063,'b3214e91-98da-4e45-ae86-56ae3a2304fc','The Language identifies the language to use for display and formatting',200040,18,'Y',200069,'D','Language','AD_Language','Language for this entity',10,'Y',10,'Y',100,TO_DATE('2013-03-26 13:27:21','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-26 13:27:21','YYYY-MM-DD HH24:MI:SS'),0,0,'N')
;
-- Mar 26, 2013 1:27:23 PM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200063 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- Mar 26, 2013 1:27:58 PM COT
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,IsCentrallyMaintained,Name,Action,AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200048,'N','N','N',200040,'D','Y','Change Base Language','P','5e18df98-6bc1-4a2d-afd6-f6345f8e9e03','Y',0,100,TO_DATE('2013-03-26 13:27:57','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-03-26 13:27:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 26, 2013 1:27:58 PM COT
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200048 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Mar 26, 2013 1:27:58 PM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200048, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200048)
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53296
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=161
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=367
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=456
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=501
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=326
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=566
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=392
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=113
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=220
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=351
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=289
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=302
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=303
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200047
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200048
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=321
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=461
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53193
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53322
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=383
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Process SET Help='In order to enable en_US as a translation you can enable any other language as base language.
If you don''t want to have a base language choose a language that won''t be used for login.
If all languages are going to be used as login, create a xx_XX language not login and use it as base.
Please note that base language cannot be a system language.',Updated=TO_DATE('2013-03-26 13:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200040
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=200040
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Menu SET Name='Change Base Language', Description='Change Base Language', IsActive='Y',Updated=TO_DATE('2013-03-26 13:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200048
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200048
;
-- Mar 26, 2013 1:33:05 PM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200049, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200049)
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=334
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=498
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=224
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=145
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=336
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=341
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=144
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=170
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=465
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=101
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=294
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=395
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=296
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=221
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=233
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=290
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=109
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=50008
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53296
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 27, 2013 10:12:17 PM COT
-- IDEMPIERE-136 Tenant base language improvement
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES ('I','If you change the client language is recommended that you run the Synchronize Doc Translation after that',200157,'D','2ef34f79-6d6d-4ac7-a9ac-d119491bddbf','ClientLanguageWarning','Y',TO_DATE('2013-03-27 22:12:16','YYYY-MM-DD HH24:MI:SS'),100,100,0,0,TO_DATE('2013-03-27 22:12:16','YYYY-MM-DD HH24:MI:SS'))
;
-- Mar 27, 2013 10:12:17 PM COT
-- IDEMPIERE-136 Tenant base language improvement
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200157 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- Mar 27, 2013 10:15:13 PM COT
-- IDEMPIERE-136 Tenant base language improvement
UPDATE AD_Process SET Help='This applies to the client defined document translations, e.g. for UoM, Payment Terms, Product Info, etc.<br>
<br>
If the current client has multi-lingual documents enabled, then the main record is copied to the client language (defined in Client window). BE CAREFUL as this option can potentially damage data you modified, it is recommended to take a backup and plan carefully what you''re doing if this is the first time running this process.<br>
<br>
If the current client has not multi-lingual documents enabled, the translations for documents are synchronized with the main record (i.e. it copies the content of the main record to the translation records). This process is necessary when swiching to a mono-lingual environment as there the terminoligy is maintained not in the translation records.',Updated=TO_DATE('2013-03-27 22:15:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=321
;
-- 27/03/2013 10:31:51 PM COT
-- IDEMPIERE-136 Tenant base language improvement
UPDATE AD_Language SET IsLoginLocale='Y',Updated=TO_DATE('2013-03-27 22:31:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=192
;
-- Mar 27, 2013 10:39:25 PM COT
-- IDEMPIERE-136 Tenant base language improvement
UPDATE AD_Column SET Callout='org.compiere.model.CalloutClient.clientLanguageWarning',Updated=TO_DATE('2013-03-27 22:39:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6556
;
SELECT register_migration_script('201303261336_IDEMPIERE-136.sql') FROM dual
;

View File

@ -0,0 +1,794 @@
-- Mar 26, 2013 1:13:43 PM COT
-- IDEMPIERE-136 Tenant base language improvement
INSERT INTO AD_FieldGroup (FieldGroupType,EntityType,IsCollapsedByDefault,Name,AD_FieldGroup_UU,AD_FieldGroup_ID,AD_Client_ID,Created,CreatedBy,Updated,AD_Org_ID,UpdatedBy,IsActive) VALUES ('C','D','Y','Technical','700085b2-dfb4-49ad-85e8-fcc27b9b8f2d',200015,0,TO_TIMESTAMP('2013-03-26 13:13:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-26 13:13:42','YYYY-MM-DD HH24:MI:SS'),0,100,'Y')
;
-- Mar 26, 2013 1:13:43 PM COT
INSERT INTO AD_FieldGroup_Trl (AD_Language,AD_FieldGroup_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_FieldGroup_Trl_UU ) SELECT l.AD_Language,t.AD_FieldGroup_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_FieldGroup t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_FieldGroup_ID=200015 AND NOT EXISTS (SELECT * FROM AD_FieldGroup_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_FieldGroup_ID=t.AD_FieldGroup_ID)
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=200, AD_FieldGroup_ID=200015,Updated=TO_TIMESTAMP('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11024
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=210, AD_FieldGroup_ID=200015,Updated=TO_TIMESTAMP('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54238
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=220, AD_FieldGroup_ID=200015,Updated=TO_TIMESTAMP('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54680
;
-- Mar 26, 2013 1:14:50 PM COT
UPDATE AD_Field SET SeqNo=230, AD_FieldGroup_ID=200015,Updated=TO_TIMESTAMP('2013-03-26 13:14:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200096
;
-- Mar 26, 2013 1:18:52 PM COT
INSERT INTO AD_Process (CopyFromProcess,AD_Process_ID,IsDirectPrint,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Name,AD_Org_ID,AD_Client_ID,Updated,UpdatedBy,Created,IsActive,CreatedBy,Classname,Value) VALUES ('N',200039,'N','N','448fa1f7-ca47-400e-b535-4827974e705d','4','N','N',0,0,'Y','D','Verify Language Configuration',0,0,TO_TIMESTAMP('2013-03-26 13:18:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-26 13:18:51','YYYY-MM-DD HH24:MI:SS'),'Y',100,'org.idempiere.process.VerifyLanguageConfiguration','VerifyLanguageConfiguration')
;
-- Mar 26, 2013 1:18:52 PM COT
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_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_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200039 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- Mar 26, 2013 1:19:04 PM COT
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,IsCentrallyMaintained,Name,"action",AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200047,'N','N','N',200039,'D','Y','Verify Language Configuration','P','48ebb9f8-189a-4497-8230-d87595f529a5','Y',0,100,TO_TIMESTAMP('2013-03-26 13:19:03','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-03-26 13:19:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 26, 2013 1:19:04 PM COT
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200047 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Mar 26, 2013 1:19:04 PM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 100, statement_timestamp(), 100,t.AD_Tree_ID, 200047, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200047)
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53296
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=161
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=367
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=456
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=501
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=326
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=566
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=392
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=113
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=220
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=351
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=289
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=302
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=303
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200047
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=14, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=321
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=15, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=461
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=16, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53193
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=17, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53322
;
-- Mar 26, 2013 1:19:40 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=18, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=383
;
-- Mar 26, 2013 1:21:15 PM COT
INSERT INTO AD_Process (CopyFromProcess,Help,AD_Process_ID,IsDirectPrint,IsReport,AD_Process_UU,AccessLevel,IsBetaFunctionality,IsServerProcess,Statistic_Seconds,Statistic_Count,ShowHelp,EntityType,Description,Name,AD_Org_ID,AD_Client_ID,Updated,UpdatedBy,Created,IsActive,CreatedBy,Classname,Value) VALUES ('N','In order to enable en_US as a translation you can enable any other language as base language.
If you don''t want to have a base language choose a language that won''t be used for login.
If all languages are going to be used as login, create a xx_XX language not login and use it as base.',200040,'N','N','9220f1d3-fb15-4a0b-8d14-ebe57681ff39','4','N','N',0,0,'Y','D','Change Base Language','Change Base Language',0,0,TO_TIMESTAMP('2013-03-26 13:21:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-26 13:21:14','YYYY-MM-DD HH24:MI:SS'),'Y',100,'org.idempiere.process.ChangeBaseLanguage','ChangeBaseLanguage')
;
-- Mar 26, 2013 1:21:15 PM COT
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Trl_UU ) SELECT l.AD_Language,t.AD_Process_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_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=200040 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- Mar 26, 2013 1:23:43 PM COT
INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,Description,ValidationType,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200069,'AD_Language NOT System/Base','D','ad7b3ed9-6c90-430e-937f-b42ecd6fe1b0','N','Language not system neither base','T',0,0,100,TO_TIMESTAMP('2013-03-26 13:23:42','YYYY-MM-DD HH24:MI:SS'),'Y',TO_TIMESTAMP('2013-03-26 13:23:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 26, 2013 1:23:43 PM COT
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200069 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;
-- Mar 26, 2013 1:26:25 PM COT
INSERT INTO AD_Ref_Table (IsValueDisplayed,WhereClause,AD_Reference_ID,AD_Key,AD_Display,EntityType,AD_Table_ID,AD_Ref_Table_UU,CreatedBy,Updated,Created,AD_Client_ID,UpdatedBy,AD_Org_ID,IsActive) VALUES ('N','NOT (AD_Language.IsSystemLanguage=''Y'' OR AD_Language.IsBaseLanguage=''Y'')',200069,203,204,'D',111,'5c394413-3298-4a5d-8ea0-1a5e56b7ef7e',100,TO_TIMESTAMP('2013-03-26 13:26:25','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-26 13:26:25','YYYY-MM-DD HH24:MI:SS'),0,100,0,'Y')
;
-- Mar 26, 2013 1:27:23 PM COT
INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,AD_Reference_Value_ID,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,AD_Client_ID,IsEncrypted) VALUES ('N',109,200063,'b3214e91-98da-4e45-ae86-56ae3a2304fc','The Language identifies the language to use for display and formatting',200040,18,'Y',200069,'D','Language','AD_Language','Language for this entity',10,'Y',10,'Y',100,TO_TIMESTAMP('2013-03-26 13:27:21','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-26 13:27:21','YYYY-MM-DD HH24:MI:SS'),0,0,'N')
;
-- Mar 26, 2013 1:27:23 PM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200063 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- Mar 26, 2013 1:27:58 PM COT
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Process_ID,EntityType,IsCentrallyMaintained,Name,"action",AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200048,'N','N','N',200040,'D','Y','Change Base Language','P','5e18df98-6bc1-4a2d-afd6-f6345f8e9e03','Y',0,100,TO_TIMESTAMP('2013-03-26 13:27:57','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-03-26 13:27:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 26, 2013 1:27:58 PM COT
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200048 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Mar 26, 2013 1:27:58 PM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 100, statement_timestamp(), 100,t.AD_Tree_ID, 200048, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200048)
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53296
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=161
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=367
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=456
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=501
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=326
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=566
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=392
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=113
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=220
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=351
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=289
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=302
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=303
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200047
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=14, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200048
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=15, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=321
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=16, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=461
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=17, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53193
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=18, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53322
;
-- Mar 26, 2013 1:28:04 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=155, SeqNo=19, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=383
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Process SET Help='In order to enable en_US as a translation you can enable any other language as base language.
If you don''t want to have a base language choose a language that won''t be used for login.
If all languages are going to be used as login, create a xx_XX language not login and use it as base.
Please note that base language cannot be a system language.',Updated=TO_TIMESTAMP('2013-03-26 13:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200040
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=200040
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Menu SET Name='Change Base Language', Description='Change Base Language', IsActive='Y',Updated=TO_TIMESTAMP('2013-03-26 13:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200048
;
-- Mar 26, 2013 1:28:41 PM COT
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200048
;
-- Mar 26, 2013 1:33:05 PM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 100, statement_timestamp(), 100,t.AD_Tree_ID, 200049, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200049)
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=334
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=498
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=224
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=145
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=336
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=341
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=144
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=170
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=465
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=101
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=294
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=395
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=296
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=221
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=14, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=233
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=15, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=290
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=16, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=109
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=17, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=50008
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:35:39 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53296
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:35:47 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:03 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:36:10 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200026
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=514
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200049
;
-- Mar 26, 2013 1:36:13 PM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200027
;
-- Mar 27, 2013 10:12:17 PM COT
-- IDEMPIERE-136 Tenant base language improvement
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES ('I','If you change the client language is recommended that you run the Synchronize Doc Translation after that',200157,'D','2ef34f79-6d6d-4ac7-a9ac-d119491bddbf','ClientLanguageWarning','Y',TO_TIMESTAMP('2013-03-27 22:12:16','YYYY-MM-DD HH24:MI:SS'),100,100,0,0,TO_TIMESTAMP('2013-03-27 22:12:16','YYYY-MM-DD HH24:MI:SS'))
;
-- Mar 27, 2013 10:12:17 PM COT
-- IDEMPIERE-136 Tenant base language improvement
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200157 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- Mar 27, 2013 10:15:13 PM COT
-- IDEMPIERE-136 Tenant base language improvement
UPDATE AD_Process SET Help='This applies to the client defined document translations, e.g. for UoM, Payment Terms, Product Info, etc.<br>
<br>
If the current client has multi-lingual documents enabled, then the main record is copied to the client language (defined in Client window). BE CAREFUL as this option can potentially damage data you modified, it is recommended to take a backup and plan carefully what you''re doing if this is the first time running this process.<br>
<br>
If the current client has not multi-lingual documents enabled, the translations for documents are synchronized with the main record (i.e. it copies the content of the main record to the translation records). This process is necessary when swiching to a mono-lingual environment as there the terminoligy is maintained not in the translation records.',Updated=TO_TIMESTAMP('2013-03-27 22:15:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=321
;
-- 27/03/2013 10:31:51 PM COT
-- IDEMPIERE-136 Tenant base language improvement
UPDATE AD_Language SET IsLoginLocale='Y',Updated=TO_TIMESTAMP('2013-03-27 22:31:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=192
;
-- Mar 27, 2013 10:39:25 PM COT
-- IDEMPIERE-136 Tenant base language improvement
UPDATE AD_Column SET Callout='org.compiere.model.CalloutClient.clientLanguageWarning',Updated=TO_TIMESTAMP('2013-03-27 22:39:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6556
;
SELECT register_migration_script('201303261336_IDEMPIERE-136.sql') FROM dual
;

View File

@ -23,6 +23,7 @@ import java.util.Properties;
* Client Callout * Client Callout
* *
* @author Karsten Thiemann - kthiemann@adempiere.org * @author Karsten Thiemann - kthiemann@adempiere.org
* @author Carlos Ruiz - globalqss
*/ */
public class CalloutClient extends CalloutEngine public class CalloutClient extends CalloutEngine
{ {
@ -54,5 +55,13 @@ public class CalloutClient extends CalloutEngine
{ {
return "StoreArchiveWarning"; return "StoreArchiveWarning";
} // storeArchiveOnFileSystem } // storeArchiveOnFileSystem
/**
* Shows a warning message when changing the language
*/
public String clientLanguageWarning (Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
{
return "ClientLanguageWarning";
} // clientLanguageWarning
} // CalloutClient } // CalloutClient

View File

@ -6,7 +6,8 @@ Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.adempiere.base;bundle-version="1.0.0" Require-Bundle: org.adempiere.base;bundle-version="1.0.0"
Export-Package: org.adempiere.process, Export-Package: org.adempiere.process,
org.compiere.process org.compiere.process,
org.idempiere.process
Import-Package: javax.mail;version="1.4.5", Import-Package: javax.mail;version="1.4.5",
javax.mail.internet;version="1.4.5", javax.mail.internet;version="1.4.5",
javax.servlet;version="2.5.0", javax.servlet;version="2.5.0",

View File

@ -17,16 +17,18 @@
package org.compiere.process; package org.compiere.process;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.PreparedStatement; import java.util.List;
import java.sql.ResultSet;
import java.util.logging.Level; import java.util.logging.Level;
import org.compiere.model.MClient; import org.compiere.model.MClient;
import org.compiere.model.MColumn; import org.compiere.model.MColumn;
import org.compiere.model.MTable; import org.compiere.model.MTable;
import org.compiere.model.PO;
import org.compiere.model.Query;
import org.compiere.util.AdempiereUserError; import org.compiere.util.AdempiereUserError;
import org.compiere.util.DB; import org.compiere.util.DB;
import org.compiere.util.DisplayType; import org.compiere.util.DisplayType;
import org.compiere.util.Language;
/** /**
@ -61,73 +63,76 @@ public class TranslationDocSync extends SvrProcess
protected String doIt() throws Exception protected String doIt() throws Exception
{ {
MClient client = MClient.get(getCtx()); MClient client = MClient.get(getCtx());
if (client.isMultiLingualDocument()) String baselang = Language.getBaseAD_Language();
if (client.isMultiLingualDocument() && client.getAD_Language().equals(baselang)) {
throw new AdempiereUserError("@AD_Client_ID@: @IsMultiLingualDocument@"); throw new AdempiereUserError("@AD_Client_ID@: @IsMultiLingualDocument@");
// }
if (log.isLoggable(Level.INFO)) log.info("" + client); if (log.isLoggable(Level.INFO)) log.info("" + client);
String sql = "SELECT * FROM AD_Table " List<MTable> tables = new Query(getCtx(), "AD_Table", "TableName LIKE '%_Trl' AND TableName NOT LIKE 'AD%'", get_TrxName())
+ "WHERE TableName LIKE '%_Trl' AND TableName NOT LIKE 'AD%' " .setOrderBy("TableName")
+ "ORDER BY TableName"; .list();
PreparedStatement pstmt = null; for (MTable table : tables) {
ResultSet rs = null; processTable (table, client);
try
{
pstmt = DB.prepareStatement (sql, get_TrxName());
rs = pstmt.executeQuery ();
while (rs.next ())
{
processTable (new MTable(getCtx(), rs, null), client.getAD_Client_ID());
}
} }
catch (Exception e)
{
log.log (Level.SEVERE, sql, e);
}
finally
{
DB.close(rs, pstmt);
rs = null; pstmt = null;
}
return "OK"; return "OK";
} // doIt } // doIt
/** /**
* Process Translation Table * Process Translation Table
* @param table table * @param table table
*/ */
private void processTable (MTable table, int AD_Client_ID) private void processTable (MTable table, MClient client)
{ {
StringBuilder sql = new StringBuilder(); StringBuilder columnNames = new StringBuilder();
MColumn[] columns = table.getColumns(false); MColumn[] columns = table.getColumns(false);
for (int i = 0; i < columns.length; i++) for (int i = 0; i < columns.length; i++)
{ {
MColumn column = columns[i]; MColumn column = columns[i];
if (column.getAD_Reference_ID() == DisplayType.String if ( (!column.getColumnName().equals(PO.getUUIDColumnName(table.getTableName())))
|| column.getAD_Reference_ID() == DisplayType.Text) && ( column.getAD_Reference_ID() == DisplayType.String
|| column.getAD_Reference_ID() == DisplayType.Text))
{ {
String columnName = column.getColumnName(); String columnName = column.getColumnName();
if (sql.length() != 0) if (columnNames.length() != 0)
sql.append(","); columnNames.append(",");
sql.append(columnName); columnNames.append(columnName);
} }
} }
String baseTable = table.getTableName(); String trlTable = table.getTableName();
baseTable = baseTable.substring(0, baseTable.length()-4); String baseTable = trlTable.substring(0, trlTable.length()-4);
if (log.isLoggable(Level.CONFIG)) log.config(baseTable + ": " + sql); if (log.isLoggable(Level.CONFIG)) log.config(baseTable + ": " + columnNames);
String columnNames = sql.toString();
sql = new StringBuilder(); if (client.isMultiLingualDocument()) {
sql.append("UPDATE ").append(table.getTableName()).append(" t SET (") String baselang = Language.getBaseAD_Language();
.append(columnNames).append(") = (SELECT ").append(columnNames) if (client.getAD_Language().equals(baselang)) {
.append(" FROM ").append(baseTable).append(" b WHERE t.") // tenant language = base language
.append(baseTable).append("_ID=b.").append(baseTable).append("_ID) WHERE AD_Client_ID=") // nothing to do
.append(AD_Client_ID); } else {
// tenant language <> base language
// auto update translation for tenant language
StringBuilder sql = new StringBuilder("UPDATE ").append(trlTable).append(" SET (")
.append(columnNames).append(",IsTranslated) = (SELECT ").append(columnNames)
.append(",'Y' FROM ").append(baseTable).append(" b WHERE ").append(trlTable).append(".")
.append(baseTable).append("_ID=b.").append(baseTable).append("_ID) WHERE AD_Client_ID=")
.append(getAD_Client_ID()).append(" AND AD_Language=").append(DB.TO_STRING(client.getAD_Language()));
int no = DB.executeUpdate(sql.toString(), get_TrxName());
addLog(0, null, new BigDecimal(no), baseTable);
}
} else {
// auto update all translations
StringBuilder sql = new StringBuilder("UPDATE ").append(trlTable).append(" SET (")
.append(columnNames).append(",IsTranslated) = (SELECT ").append(columnNames)
.append(",'Y' FROM ").append(baseTable).append(" b WHERE ").append(trlTable).append(".")
.append(baseTable).append("_ID=b.").append(baseTable).append("_ID) WHERE AD_Client_ID=")
.append(getAD_Client_ID());
int no = DB.executeUpdate(sql.toString(), get_TrxName());
addLog(0, null, new BigDecimal(no), baseTable);
}
int no = DB.executeUpdate(sql.toString(), get_TrxName());
addLog(0, null, new BigDecimal(no), baseTable);
} // processTable } // processTable
} // TranslationDocSync } // TranslationDocSync

View File

@ -0,0 +1,97 @@
/**********************************************************************
* This file is part of iDempiere ERP Open Source *
* http://www.idempiere.org *
* *
* Copyright (C) Contributors *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trek Global *
* - Carlos Ruiz *
**********************************************************************/
package org.idempiere.process;
import java.util.logging.Level;
import org.compiere.model.MLanguage;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.AdempiereUserError;
import org.compiere.util.Language;
import org.compiere.util.Util;
/**
* Verify Language Configuration
*
* @author Carlos Ruiz - globalqss
*/
public class ChangeBaseLanguage extends SvrProcess
{
/* The new language */
private String p_Language;
/**
* Prepare - e.g., get Parameters.
*/
protected void prepare()
{
for (ProcessInfoParameter para : getParameter())
{
String name = para.getParameterName();
if (name.equals("AD_Language")) {
p_Language = (String) para.getParameter();
} else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
} // prepare
/**
* Perform process.
* @return Message
* @throws Exception
*/
protected String doIt() throws Exception
{
if (log.isLoggable(Level.INFO)) log.info("AD_Language=" + p_Language);
if (Util.isEmpty(p_Language))
throw new AdempiereUserError("Language required");
MLanguage lang = MLanguage.get(getCtx(), p_Language);
if (lang.isBaseLanguage())
throw new AdempiereUserError("Same base language");
if (lang.isSystemLanguage())
throw new AdempiereUserError("Base language cannot be a system language");
MLanguage baselang = MLanguage.get(getCtx(), Language.getBaseAD_Language());
if (baselang.equals(p_Language))
throw new AdempiereUserError("Same base language");
// Disable the base flag on the actual
baselang.setIsBaseLanguage(false);
baselang.saveEx(get_TrxName());
// Enable base flag on new language
lang.setIsBaseLanguage(false);
lang.saveEx(get_TrxName());
Language.setBaseLanguage(p_Language);
return "@OK@";
} // doIt
} // ChangeBaseLanguage

View File

@ -0,0 +1,74 @@
/**********************************************************************
* This file is part of iDempiere ERP Open Source *
* http://www.idempiere.org *
* *
* Copyright (C) Contributors *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trek Global *
* - Carlos Ruiz *
**********************************************************************/
package org.idempiere.process;
import java.util.logging.Level;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
/**
* Verify Language Configuration
*
* @author Carlos Ruiz - globalqss
*/
public class VerifyLanguageConfiguration extends SvrProcess
{
/**
* Prepare - e.g., get Parameters.
*/
protected void prepare()
{
for (ProcessInfoParameter para : getParameter())
{
String name = para.getParameterName();
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
} // prepare
/**
* Perform process.
* @return Message
* @throws Exception
*/
protected String doIt() throws Exception
{
log.info("");
// TODO: Verify the flags on languages
// TODO: Verify that system languages have complete translations loaded
// TODO: Verify that translations correspond with system languages
// TODO: Verify that locale languages have a similar translation loaded
// TODO: Verify that tenant languages correspond with system languages
return "@OK@";
} // doIt
} // VerifyLanguageConfiguration

View File

@ -54,10 +54,9 @@ import org.compiere.util.Language;
public class MClient extends X_AD_Client public class MClient extends X_AD_Client
{ {
/** /**
* *
*/ */
private static final long serialVersionUID = 5428247545086634858L; private static final long serialVersionUID = -1242880454287104705L;
/** /**
* Get client * Get client
@ -420,24 +419,6 @@ public class MClient extends X_AD_Client
return aa != null && !aa.equals(AUTOARCHIVE_None); return aa != null && !aa.equals(AUTOARCHIVE_None);
} // isAutoArchive } // isAutoArchive
/**
* Update Trl Tables automatically?
* @param TableName table name
* @return true if automatically translated
*/
public boolean isAutoUpdateTrl (String TableName)
{
if (super.isMultiLingualDocument())
return false;
if (TableName == null)
return false;
// Not Multi-Lingual Documents - only Doc Related
if (TableName.startsWith("AD") && getAD_Client_ID() == 0)
return false;
return true;
} // isMultiLingualDocument
/** /**
* Get Primary Accounting Schema * Get Primary Accounting Schema
* @return Acct Schema or null * @return Acct Schema or null

View File

@ -59,6 +59,7 @@ import org.compiere.util.DisplayType;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Evaluatee; import org.compiere.util.Evaluatee;
import org.compiere.util.Ini; import org.compiere.util.Ini;
import org.compiere.util.Language;
import org.compiere.util.Msg; import org.compiere.util.Msg;
import org.compiere.util.SecureEngine; import org.compiere.util.SecureEngine;
import org.compiere.util.Trace; import org.compiere.util.Trace;
@ -3334,8 +3335,8 @@ public abstract class PO
// Not a translation table // Not a translation table
if (m_IDs.length > 1 if (m_IDs.length > 1
|| m_IDs[0].equals(I_ZERO) || m_IDs[0].equals(I_ZERO)
|| !p_info.isTranslated() || !(m_IDs[0] instanceof Integer)
|| !(m_IDs[0] instanceof Integer)) || !p_info.isTranslated())
return true; return true;
// //
StringBuilder iColumns = new StringBuilder(); StringBuilder iColumns = new StringBuilder();
@ -3405,9 +3406,14 @@ public abstract class PO
// Not a translation table // Not a translation table
if (m_IDs.length > 1 if (m_IDs.length > 1
|| m_IDs[0].equals(I_ZERO) || m_IDs[0].equals(I_ZERO)
|| !p_info.isTranslated() || !(m_IDs[0] instanceof Integer)
|| !(m_IDs[0] instanceof Integer)) || !p_info.isTranslated())
return true; return true;
String tableName = p_info.getTableName();
if (tableName.startsWith("AD") && getAD_Client_ID() == 0)
return true;
// //
boolean trlColumnChanged = false; boolean trlColumnChanged = false;
for (int i = 0; i < p_info.getColumnCount(); i++) for (int i = 0; i < p_info.getColumnCount(); i++)
@ -3424,42 +3430,82 @@ public abstract class PO
// //
MClient client = MClient.get(getCtx()); MClient client = MClient.get(getCtx());
// //
String tableName = p_info.getTableName();
String keyColumn = m_KeyColumns[0]; String keyColumn = m_KeyColumns[0];
StringBuilder sql = new StringBuilder ("UPDATE ") StringBuilder sqlupdate = new StringBuilder("UPDATE ")
.append(tableName).append("_Trl SET "); .append(tableName).append("_Trl SET ");
// //
if (client.isAutoUpdateTrl(tableName)) StringBuilder sqlcols = new StringBuilder();
for (int i = 0; i < p_info.getColumnCount(); i++)
{ {
for (int i = 0; i < p_info.getColumnCount(); i++) String columnName = p_info.getColumnName(i);
if (p_info.isColumnTranslated(i)
&& is_ValueChanged(columnName))
{ {
if (p_info.isColumnTranslated(i)) sqlcols.append(columnName).append("=");
{ Object value = get_Value(columnName);
String columnName = p_info.getColumnName(i); if (value == null)
sql.append(columnName).append("="); sqlcols.append("NULL");
Object value = get_Value(columnName); else if (value instanceof String)
if (value == null) sqlcols.append(DB.TO_STRING((String)value));
sql.append("NULL"); else if (value instanceof Boolean)
else if (value instanceof String) sqlcols.append(((Boolean)value).booleanValue() ? "'Y'" : "'N'");
sql.append(DB.TO_STRING((String)value)); else if (value instanceof Timestamp)
else if (value instanceof Boolean) sqlcols.append(DB.TO_DATE((Timestamp)value));
sql.append(((Boolean)value).booleanValue() ? "'Y'" : "'N'"); else
else if (value instanceof Timestamp) sqlcols.append(value.toString());
sql.append(DB.TO_DATE((Timestamp)value)); sqlcols.append(",");
else }
sql.append(value.toString()); }
sql.append(","); StringBuilder whereid = new StringBuilder(" WHERE ").append(keyColumn).append("=").append(get_ID());
StringBuilder andlang = new StringBuilder(" AND AD_Language=").append(DB.TO_STRING(client.getAD_Language()));
StringBuilder andnotlang = new StringBuilder(" AND AD_Language!=").append(DB.TO_STRING(client.getAD_Language()));
int no = -1;
if (client.isMultiLingualDocument()) {
String baselang = Language.getBaseAD_Language();
if (client.getAD_Language().equals(baselang)) {
// tenant language = base language
// set all translations as untranslated
StringBuilder sqlexec = new StringBuilder()
.append(sqlupdate)
.append("IsTranslated='N'")
.append(whereid);
no = DB.executeUpdate(sqlexec.toString(), m_trxName);
if (log.isLoggable(Level.FINE)) log.fine("#" + no);
} else {
// tenant language <> base language
// auto update translation for tenant language
StringBuilder sqlexec = new StringBuilder()
.append(sqlupdate)
.append(sqlcols)
.append("IsTranslated='Y'")
.append(whereid)
.append(andlang);
no = DB.executeUpdate(sqlexec.toString(), m_trxName);
if (log.isLoggable(Level.FINE)) log.fine("#" + no);
if (no >= 0) {
// set other translations as untranslated
sqlexec = new StringBuilder()
.append(sqlupdate)
.append("IsTranslated='N'")
.append(whereid)
.append(andnotlang);
no = DB.executeUpdate(sqlexec.toString(), m_trxName);
if (log.isLoggable(Level.FINE)) log.fine("#" + no);
} }
} }
sql.append("IsTranslated='Y'");
} else {
// auto update all translations
StringBuilder sqlexec = new StringBuilder()
.append(sqlupdate)
.append(sqlcols)
.append("IsTranslated='Y'")
.append(whereid);
no = DB.executeUpdate(sqlexec.toString(), m_trxName);
if (log.isLoggable(Level.FINE)) log.fine("#" + no);
} }
else
sql.append("IsTranslated='N'");
//
sql.append(" WHERE ")
.append(keyColumn).append("=").append(get_ID());
int no = DB.executeUpdate(sql.toString(), m_trxName);
if (log.isLoggable(Level.FINE)) log.fine("#" + no);
return no >= 0; return no >= 0;
} // updateTranslations } // updateTranslations
@ -3473,8 +3519,8 @@ public abstract class PO
// Not a translation table // Not a translation table
if (m_IDs.length > 1 if (m_IDs.length > 1
|| m_IDs[0].equals(I_ZERO) || m_IDs[0].equals(I_ZERO)
|| !p_info.isTranslated() || !(m_IDs[0] instanceof Integer)
|| !(m_IDs[0] instanceof Integer)) || !p_info.isTranslated())
return true; return true;
// //
String tableName = p_info.getTableName(); String tableName = p_info.getTableName();

View File

@ -48,7 +48,7 @@ public class POInfo implements Serializable
/** /**
* *
*/ */
private static final long serialVersionUID = 6383466650370705655L; private static final long serialVersionUID = 3496403499343293597L;
/** Used by Remote FinReport */ /** Used by Remote FinReport */
/** /**
@ -132,6 +132,7 @@ public class POInfo implements Serializable
private Map<String, Integer> m_columnNameMap; private Map<String, Integer> m_columnNameMap;
/** ad_column_id to index map **/ /** ad_column_id to index map **/
private Map<Integer, Integer> m_columnIdMap; private Map<Integer, Integer> m_columnIdMap;
private Boolean m_IsTranslated = null;
/** /**
* Load Table/Column Info * Load Table/Column Info
@ -578,12 +579,17 @@ public class POInfo implements Serializable
*/ */
public boolean isTranslated () public boolean isTranslated ()
{ {
for (int i = 0; i < m_columns.length; i++) if (m_IsTranslated == null) {
{ m_IsTranslated = Boolean.FALSE;
if (m_columns[i].IsTranslated) for (int i = 0; i < m_columns.length; i++)
return true; {
if (m_columns[i].IsTranslated) {
m_IsTranslated = Boolean.TRUE;
break;
}
}
} }
return false; return m_IsTranslated.booleanValue();
} // isTranslated } // isTranslated
/** /**

View File

@ -1202,7 +1202,7 @@ public final class Env
String langCompare = language.getAD_Language().substring(0, 2); String langCompare = language.getAD_Language().substring(0, 2);
if (lang.equals(langCompare)) if (lang.equals(langCompare))
{ {
if (log.isLoggable(Level.FINE)) log.fine("Found similar Language " + AD_Language); if (log.isLoggable(Level.INFO)) log.info("Found similar Language " + AD_Language);
language.setAD_Language(AD_Language); language.setAD_Language(AD_Language);
return; return;
} }

View File

@ -70,6 +70,7 @@ public class Language implements Serializable
/** Base Language */ /** Base Language */
private static Language s_baseLanguage = s_languages[0]; private static Language s_baseLanguage = s_languages[0];
private static boolean isBaseLanguageSet = false;
/** Logger */ /** Logger */
private static CLogger log = CLogger.getCLogger(Language.class.getName()); private static CLogger log = CLogger.getCLogger(Language.class.getName());
@ -142,18 +143,17 @@ public class Language implements Serializable
// Create Language on the fly // Create Language on the fly
if (lang.length() == 5) // standard format <language>_<Country> if (lang.length() == 5) // standard format <language>_<Country>
{ {
Language ll; Language ll = null;
String language = lang.substring(0,2); String language = lang.substring(0,2);
String country = lang.substring(3); String country = lang.substring(3);
Locale locale = new Locale(language, country); Locale locale = new Locale(language, country);
if (DB.isConnected()) { if (DB.isConnected()) {
MLanguage dblang = MLanguage.get(Env.getCtx(), langInfo); // first time connected?
if (dblang == null) if (!isBaseLanguageSet) {
{ setBaseLanguage();
ll = new Language (lang, lang, locale);
} }
else MLanguage dblang = MLanguage.get(Env.getCtx(), langInfo);
{ if (dblang != null) {
Boolean decimalPoint = null; Boolean decimalPoint = null;
if (dblang.getIsDecimalPoint() != null) if (dblang.getIsDecimalPoint() != null)
decimalPoint = "Y".equals(dblang.getIsDecimalPoint()); decimalPoint = "Y".equals(dblang.getIsDecimalPoint());
@ -172,10 +172,16 @@ public class Language implements Serializable
ll.m_fromDB = true; ll.m_fromDB = true;
if (dblang.isBaseLanguage()) { if (dblang.isBaseLanguage()) {
idxReplace = 0; idxReplace = 0;
s_baseLanguage = ll; if (dblang.isSystemLanguage()) {
// base language is uploaded also as System language, don't use base language but the corresponding translation
s_baseLanguage = new Language ("no-base", "xx_XX", locale);
} else {
s_baseLanguage = ll;
}
} }
} }
} else { }
if (ll == null) {
ll = new Language (lang, lang, locale); ll = new Language (lang, lang, locale);
} }
StringBuilder msglog = new StringBuilder("Adding Language=").append(language).append(", Country=").append(country).append(", Locale=").append(locale); StringBuilder msglog = new StringBuilder("Adding Language=").append(language).append(", Country=").append(country).append(", Locale=").append(locale);
@ -196,6 +202,19 @@ public class Language implements Serializable
return s_baseLanguage; return s_baseLanguage;
} // getLanguage } // getLanguage
private static void setBaseLanguage() {
isBaseLanguageSet = true;
String baselang = DB.getSQLValueStringEx(null, "SELECT AD_Language FROM AD_Language WHERE IsActive='Y' AND IsBaseLanguage = 'Y'");
if (baselang != null) {
getLanguage(baselang);
}
}
public static void setBaseLanguage(String baselang) {
Language lang = getLanguage(baselang);
s_baseLanguage = lang;
}
/** /**
* Is it the base language * Is it the base language
* @param langInfo either language (en) or locale (en-US) or display name * @param langInfo either language (en) or locale (en-US) or display name

View File

@ -361,10 +361,8 @@ public class LoginPanel extends Window implements EventListener<Event>
String[] availableLanguages = Language.getNames(); String[] availableLanguages = Language.getNames();
for (String langName : availableLanguages) { for (String langName : availableLanguages) {
Language language = Language.getLanguage(langName); Language language = Language.getLanguage(langName);
if (!language.isBaseLanguage()) { if (!supported.contains(language.getAD_Language()))
if (!supported.contains(language.getAD_Language())) continue;
continue;
}
lstLanguage.appendItem(langName, language.getAD_Language()); lstLanguage.appendItem(langName, language.getAD_Language());
} }