Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006924Openbravo ERP01. General setuppublic2009-01-15 16:482009-04-30 19:18
pmagnin 
alostale 
normalminorhave not tried
closedfixed 
5
pi 
2.502.50MP1 
Core
No
0006924: Modularity Issue when modifying Module name for table
The table fields are associated to the active table module when you click on the button "Create Columns from DB" on the table page setup.
If you change the module name after clicking this button (You forgot for example to choose your own module), the table is well affected to the module but the fields are still belonging to the previous module.
1) Create a module "MyModule"
2) Create a table in your DB
3) Create the same table on the application with the module "Core" (Click Save)
4) Create fields clicking the button "Create Columns from DB"
5) Change the module name of your table (MyModule)
6) Click save and try to execute the process "Synchronize Terminology"

==> Error
Forbid changing the module name after having saving the table. The user would have to first delete his table and create it again, using the good module before adding the fields.
main, Modularity
Issue History
2009-01-15 16:48pmagninNew Issue
2009-01-15 16:48pmagninAssigned To => rafaroda
2009-01-15 16:48pmagninsf_bug_id0 => 2510234
2009-01-15 16:48pmagninRegression testing => No
2009-01-15 16:57rafarodaTag Attached: Modularity
2009-01-19 11:25psarobeStatusnew => scheduled
2009-01-19 11:25psarobeAssigned Torafaroda => alostale
2009-01-19 11:25psarobefix_in_branch => trunk
2009-04-22 10:05alostaleNote Added: 0015511
2009-04-22 10:08hgbotCheckin
2009-04-22 10:08hgbotNote Added: 0015512
2009-04-22 10:08hgbotStatusscheduled => resolved
2009-04-22 10:08hgbotResolutionopen => fixed
2009-04-22 10:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fc6eff08c994d9fac98097ff80a5e118a1151be9 [^]
2009-04-22 11:23psarobeTag Attached: main
2009-04-22 12:44hgbotCheckin
2009-04-22 12:44hgbotNote Added: 0015523
2009-04-22 12:44hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/fc6eff08c994d9fac98097ff80a5e118a1151be9 [^] => http://code.openbravo.com/erp/devel/pi/rev/f7b1977a3bcce770293ee163e323ffb4117ec952 [^]
2009-04-22 12:44hgbotCheckin
2009-04-22 12:44hgbotNote Added: 0015524
2009-04-22 12:44hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/f7b1977a3bcce770293ee163e323ffb4117ec952 [^] => http://code.openbravo.com/erp/devel/pi/rev/ddf391047a42013e1bc4068175c66baaa14d39e1 [^]
2009-04-22 16:28hgbotCheckin
2009-04-22 16:28hgbotNote Added: 0015548
2009-04-22 16:28hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/ddf391047a42013e1bc4068175c66baaa14d39e1 [^] => http://code.openbravo.com/erp/devel/pi/rev/11a3c81b8457bca2b442b71f66bee2449ac1bf46 [^]
2009-04-30 19:18psarobeStatusresolved => closed

Notes
(0015511)
alostale   
2009-04-22 10:05   
The solution for this bug is to force the table's module (through its package) to be consistent with its name following the moudularity's naming rules.
(0015512)
hgbot   
2009-04-22 10:08   
Repository: erp/devel/pi
Changeset: fc6eff08c994d9fac98097ff80a5e118a1151be9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 22 10:08:14 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fc6eff08c994d9fac98097ff80a5e118a1151be9 [^]

fixed bug 0006924: Modularity Issue when modifying Module name for table

---
M src-db/database/model/triggers/AD_TABLE_TRG.xml
---
(0015523)
hgbot   
2009-04-22 12:44   
Repository: erp/devel/pi
Changeset: f7b1977a3bcce770293ee163e323ffb4117ec952
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 22 12:37:45 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f7b1977a3bcce770293ee163e323ffb4117ec952 [^]

test case for issue 6924

---
A src-test/org/openbravo/test/modularity/TableNameTest.java
---
(0015524)
hgbot   
2009-04-22 12:44   
Repository: erp/devel/pi
Changeset: ddf391047a42013e1bc4068175c66baaa14d39e1
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 22 12:44:15 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ddf391047a42013e1bc4068175c66baaa14d39e1 [^]

added new test case for issue 0006924

---
M src-test/org/openbravo/test/modularity/TableNameTest.java
---
(0015548)
hgbot   
2009-04-22 16:28   
Repository: erp/devel/pi
Changeset: 11a3c81b8457bca2b442b71f66bee2449ac1bf46
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 22 16:28:10 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/11a3c81b8457bca2b442b71f66bee2449ac1bf46 [^]

fixed bug 6924

---
M src-db/database/model/triggers/AD_TABLE_TRG.xml
---