Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010677Openbravo ERPA. Platformpublic2009-09-21 12:212009-10-23 00:00
psarobe 
alostale 
urgentmajoralways
closedfixed 
5
pi 
2.50MP7 
Core
No
0010677: Dependencies are not working well under some circumstances
This is the scenario:
1. I have got installed the module taxes for Spain with the version 1.0.3
2. Between version 1.0.3 and 1.0.4 the localization team creates another module (Improve taxes) where Taxes module 1.0.4 depends on it
3. I have no clue about it and I update my installed taxes module (1.0.3) to 1.0.7
4. The system does not detect this dependency and I am allowed to update without having the module Improve taxes installed
5. Therefore when I'm rebuilding the system there is an error in the log although the process finishes with a Successful built
1. Install the version 1.0.2 of Spanish taxes
2. Without having installed the module Improve spanish taxes update the above module, scanning for updates
3. Rebuild the system
4. In the log of the console you will see the error regarding on a constraint:

Caused by: org.postgresql.util.PSQLException: ERROR: insert or update on
table "ad_module_dependency" violates foreign key constraint "admoduledependency_admodule2
"
[createdatabase] Detail: Key (ad_dependent_module_id)=(DB3FB5E4B81444F7858098FE3C431794)
 is not present in table "ad_module".
No tags attached.
related to defect 0010562 closed alostale Upgrading packs with new modules doesn't work 
related to defect 0010864 closed alostale Check for obx consistency when it is exported. 
Issue History
2009-09-21 12:21psarobeNew Issue
2009-09-21 12:21psarobeAssigned To => alostale
2009-09-21 12:21psarobeStatusnew => scheduled
2009-09-21 12:21psarobefix_in_branch => pi
2009-09-21 13:56vmromanosNote Added: 0020244
2009-10-05 11:19alostaleRelationship addedrelated to 0010562
2009-10-05 15:00alostaleStatusscheduled => resolved
2009-10-05 15:00alostaleFixed in SCM revision => --
2009-10-05 15:00alostaleResolutionopen => fixed
2009-10-05 15:00alostaleNote Added: 0020708
2009-10-05 15:08alostaleRelationship addedrelated to 0010864
2009-10-22 11:21plujanStatusresolved => closed
2009-10-23 00:00anonymoussf_bug_id0 => 2884248

Notes
(0020244)
vmromanos   
2009-09-21 13:56   
I have also reproduced this bug installing the module from scratch, i.e. the bug does not appear in the process of upgrading the module, but also in the first installation.

Step to reproduce:
In a PI without modules, go to the MMC, search the "Taxes: configuration for Spain" module and install it. You will see the dependent module is not installed.
(0020708)
alostale   
2009-10-05 15:00   
This is an issue with CR which has been solved.