Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012144Openbravo ERPA. Platformpublic2010-02-04 23:562010-03-12 22:41
mtaal 
alostale 
urgentmajorhave not tried
closedfixed 
5
pi 
pi2.50MP14 
Core
No
0012144: Model_object_mapping does not include tab id
Hi Asier,
I created a new table, window and tab in a module. I noticed that the tab id was not added to the information in the ad_model_object and ad_model_object_mapping. See the attached screenshots in the zip file. The generated class and html files have correct names. Only in the model object mapping they are incorrect.

gr. Martin
No tags attached.
zip model_object_name_issue.zip (195,896) 2010-02-04 23:56
https://issues.openbravo.com/file_download.php?file_id=2178&type=bug
? org.openbravo.test.module.obx (12,720) 2010-02-19 10:58
https://issues.openbravo.com/file_download.php?file_id=2249&type=bug
png 404_error.png (118,567) 2010-02-19 10:58
https://issues.openbravo.com/file_download.php?file_id=2250&type=bug
png
Issue History
2010-02-04 23:56mtaalNew Issue
2010-02-04 23:56mtaalAssigned To => alostale
2010-02-04 23:56mtaalFile Added: model_object_name_issue.zip
2010-02-19 10:58mtaalNote Added: 0024641
2010-02-19 10:58mtaalFile Added: org.openbravo.test.module.obx
2010-02-19 10:58mtaalFile Added: 404_error.png
2010-02-22 08:18alostalePrioritynormal => urgent
2010-02-22 08:18alostaleStatusnew => scheduled
2010-02-22 08:18alostalefix_in_branch => pi
2010-03-08 16:59alostaleNote Added: 0025144
2010-03-08 16:59hgbotCheckin
2010-03-08 16:59hgbotNote Added: 0025145
2010-03-08 16:59hgbotStatusscheduled => resolved
2010-03-08 16:59hgbotResolutionopen => fixed
2010-03-08 16:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9b0f4aded71f29dd29c1402eececf7f701ce6b61 [^]
2010-03-10 16:43mtaalNote Added: 0025211
2010-03-10 16:43mtaalStatusresolved => closed
2010-03-10 16:43mtaalFixed in Version => 2.50MP14
2010-03-10 17:21anonymoussf_bug_id0 =>
2010-03-10 18:29anonymoussf_bug_id => 2968015
2010-03-12 22:41hudsonbotCheckin
2010-03-12 22:41hudsonbotNote Added: 0025404

Notes
(0024641)
mtaal   
2010-02-19 10:58   
I reproduced this as follows:
- create a new module set it in development
- create a new window and tab on a table from another module
- create a menu entry pointing to the new window

recompile the new window

restart the application menu

click on the new menu entry --> 404
See the attached screenshot.
I attached the module I created to the issue.
(0025144)
alostale   
2010-03-08 16:59   
The problem appears when window name is changed.
(0025145)
hgbot   
2010-03-08 16:59   
Repository: erp/devel/pi
Changeset: 9b0f4aded71f29dd29c1402eececf7f701ce6b61
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 08 17:04:49 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9b0f4aded71f29dd29c1402eececf7f701ce6b61 [^]

fixed bug 12144: Model_object_mapping does not include tab id

---
M src-db/database/model/triggers/AD_WINDOW_TRG2.xml
---
(0025211)
mtaal   
2010-03-10 16:43   
Tested and works fine now for renaming windows.
(0025404)
hudsonbot   
2010-03-12 22:41   
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/9b0f4aded71f [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/631c626866c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16685.obx [^]