Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015408Openbravo ERPA. Platformpublic2010-12-02 13:162010-12-30 13:13
shuehner 
marvintm 
urgentmajorhave not tried
closedfixed 
5
2.50MP24 
2.50MP25 
Core
No
0015408: Usuing Dataset: 'Export referencedata' trigger 'db has local changes check' but is not protected by 'isindevelopment'
After issue 15178 was implemented the 'export referencedata' does modify the ad_dataset row of the dataset being exported (to write a checksum there).

This will prevent all further update.database calls (i.e. update/install of modules) until this changed ad_dataset row is exported.

However the user does not know this as this action (export referencedata) is not protected by the 'You need to set the module into development' check which is present in all other actions requiring to export a module afterwards.
Install i.e. 3.0rc3 (this means no module in development)
Goto the dataset window
locate entry to 'My openbravo'
use the 'export referencedata' button
run ant update.database
This will fail with the 'db has local changes' message
When exporting a dataset/referencedata require the module containing it to be in development.
No tags attached.
blocks defect 00153532.50MP25 closed marvintm Usuing Dataset: 'Export referencedata' trigger 'db has local changes check' but is not protected by 'isindevelopment' 
Issue History
2010-12-13 12:58marvintmTypedefect => backport
2010-12-13 12:58marvintmfix_in_branch => 2.50
2010-12-13 13:07hgbotCheckin
2010-12-13 13:07hgbotNote Added: 0033124
2010-12-13 13:07hgbotStatusscheduled => resolved
2010-12-13 13:07hgbotResolutionopen => fixed
2010-12-13 13:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/f885981148aa1a30b66f70b3249e03cbc0967f68 [^]
2010-12-14 12:42hgbotCheckin
2010-12-14 12:42hgbotNote Added: 0033162
2010-12-14 16:04hgbotCheckin
2010-12-14 16:04hgbotNote Added: 0033171
2010-12-14 16:04hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.50/rev/f885981148aa1a30b66f70b3249e03cbc0967f68 [^] => http://code.openbravo.com/erp/stable/2.50/rev/05985d41095b6cafdcd5731671db7eea86421535 [^]
2010-12-14 17:49shuehnerNote Added: 0033177
2010-12-14 17:49shuehnerStatusresolved => closed
2010-12-30 13:13hudsonbotCheckin
2010-12-30 13:13hudsonbotNote Added: 0033442

Notes
(0033124)
hgbot   
2010-12-13 13:07   
Repository: erp/stable/2.50
Changeset: f885981148aa1a30b66f70b3249e03cbc0967f68
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Dec 13 13:06:41 2010 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/f885981148aa1a30b66f70b3249e03cbc0967f68 [^]

Fixed issue 15408. The process will check if the module is in development before running.

---
M src/org/openbravo/erpCommon/ad_actionButton/ExportReferenceData.java
---
(0033162)
hgbot   
2010-12-14 12:42   
Repository: erp/devel/pi
Changeset: 92c6988ddf2c019377830e75a5583f2648c24544
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Dec 14 12:38:00 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/92c6988ddf2c019377830e75a5583f2648c24544 [^]

Related to issue 15408. Improved title of error message.

---
M src/org/openbravo/erpCommon/ad_actionButton/ExportReferenceData.java
---
(0033171)
hgbot   
2010-12-14 16:04   
Repository: erp/stable/2.50
Changeset: 05985d41095b6cafdcd5731671db7eea86421535
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Dec 14 16:03:17 2010 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/05985d41095b6cafdcd5731671db7eea86421535 [^]

Fixed issue 15408. Export reference data will no longer trigger autosave

---
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0033177)
shuehner   
2010-12-14 17:49   
Tested on stable/2.50 (Rev: 2fbe2449d3ac) working fine now. However autosave is now disabled for the 'Export Reference Data' button in the 'Dataset' window.
(0033442)
hudsonbot   
2010-12-30 13:13   
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/92c6988ddf2c [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7d7e5eebcc62 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.19448.obx [^]