Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014087Openbravo ERP00. Application dictionarypublic2010-07-29 13:132010-09-15 00:00
networkb 
alostale 
highminoralways
closedfixed 
5
2.50MP20 
2.50MP22 
Core
No
0014087: Tab Class should be regenerated when modifying Module field
When you are creating a tab in Application Dictionary, if you modify field "Name" record for TabClass subtab is re-generated. But if you modify field "Module" record for TabClass is not re-generated.

TabClass name should be regenerated when modifying any field of Tab window.
1. Go to Application Dictionary || Module and set core as "in development"
2. Go to Application Dictionary || Module and create one new module also set as "in development"
3. Go to Application Dictionary || Windows, Tabs, and Fields || Window: create new window for module "core" (wrongly)
4. Create new tab for the window and SAVE
5. Navigate to Application Dictionary || Windows, Tabs, and Fields || Window >> Tab >> Tab Class and realize that "Java Class Name"=org.openbravo.erpWindows.miwindow.mitab
6. Come back to Window definition and change "Module" field to choose your module
7. Come back to Tab definition and change "Module" field to choose your module
8. Navigate to Application Dictionary || Windows, Tabs, and Fields || Window >> Tab >> Tab Class and realize that "Java Class Name"=org.openbravo.erpWindows.org.openbravo.mmimod.miwindow.mitab
This is not correct as it should be
org.openbravo.erpWindows.org.openbravo.mmimod.miwindow.mitab3F337975F96C4225AC43CAC822073429
(if you compile you are not able to access this window)

In step 7, if you change "Field" name (for example, you add a blank space at the end, Save, and remove the blank space) then TabClass is properly generated as "Java Class Name"=org.openbravo.erpWindows.org.openbravo.mmimod.miwindow.mitab3F337975F96C4225AC43CAC822073429

Also, if you have created Window and Tab for your personal module and then you change their dfinition to set "Module"=core TabClass will be re-generated and set as org.openbravo.erpWindows.miwindow.mitab (which is correct)
No tags attached.
depends on defect 00141202.50MP22 closed alostale Removed entries from AD_Model_Object make the system to fail 
Issue History
2010-07-29 13:13networkbNew Issue
2010-07-29 13:13networkbAssigned To => alostale
2010-08-02 08:09alostaleStatusnew => scheduled
2010-08-03 17:45alostaleRelationship addeddepends on 0014120
2010-08-03 17:45alostaleNote Added: 0029771
2010-08-31 11:52alostaleNote Added: 0030527
2010-08-31 11:59hgbotCheckin
2010-08-31 11:59hgbotNote Added: 0030530
2010-08-31 11:59hgbotStatusscheduled => resolved
2010-08-31 11:59hgbotResolutionopen => fixed
2010-08-31 11:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/00ab56701751b0dd058eb041acdafcd04c4c4c00 [^]
2010-09-07 09:17hudsonbotCheckin
2010-09-07 09:17hudsonbotNote Added: 0030706
2010-09-14 10:51marvintmNote Added: 0031026
2010-09-14 10:51marvintmStatusresolved => closed
2010-09-15 00:00anonymoussf_bug_id0 => 3066283

Notes
(0029771)
alostale   
2010-08-03 17:45   
Once issue 0014120 is fixed, this one will become out of date.
(0030527)
alostale   
2010-08-31 11:52   
As finally 0014120 is not going to be fixed by removing model object, this issue will be fixed separately.
(0030530)
hgbot   
2010-08-31 11:59   
Repository: erp/devel/pi
Changeset: 00ab56701751b0dd058eb041acdafcd04c4c4c00
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Aug 31 11:58:51 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/00ab56701751b0dd058eb041acdafcd04c4c4c00 [^]

fixed bug 14087: Tab Class should be regenerated when modifying Module field

---
M src-db/database/model/triggers/AD_TAB_TRG2.xml
---
(0030706)
hudsonbot   
2010-09-07 09:17   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/00ab56701751 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/4390fe5213a4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18274.obx [^]
(0031026)
marvintm   
2010-09-14 10:51   
Verified that if the module is changed, the Java class name is regenerated correctly.