Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021525Openbravo ERPA. Platformpublic2012-08-31 14:572012-09-26 17:18
mirurita 
AugustoMauch 
highmajoralways
closedfixed 
20Community Appliance
pi 
3.0MP15 
marvintm
Core
No
0021525: package.module WAD validation is failing in some circunstances
Assume a project can define which is the parent project (c_project_parent_id).
C_PROJECT
 + c_project_id
 + name
 + value
 + c_project_parent_id

In the previous scenario if you create a tab based on c_project table and you show parent project information using property path it works but when you package the module the wad validation throws an error.
Scenario I
1) Prepare an workspace the following pi branch with https://code.openbravo.com/erp/devel/pi-contract [^]
3) Make a clone of the following module
https://code.openbravo.com/private/eulen/org.openbravo.contract.hierarchical/ [^]
4) Log in as system administrator
5) Go to Contract window
6) Go to Lines tab
7) Create a new field:
 - Module: Hierarchical Contract Management
 - Name: test
 - Property: obhcntrProjectParent.searchKey
 - Displayed: Y
 - Displayed Length: 20
8) ant export.database
9) ant package.module -Dmodule=org.openbravo.contract.hierarchical

package.module:
     [echo] Validating Module...
[WADValidation] 0 [main] ERROR org.openbravo.wad.validation.WADValidationResult - +++++++++++++++++++++++++++++++++++++++++++++++++++
[WADValidation] 26 [main] ERROR org.openbravo.wad.validation.WADValidationResult - Errors for Validation type: Tabs with multiple fields for same column
[WADValidation] 39 [main] ERROR org.openbravo.wad.validation.WADValidationResult - +++++++++++++++++++++++++++++++++++++++++++++++++++
[WADValidation] 51 [main] ERROR org.openbravo.wad.validation.WADValidationResult - Error in field Search Key. There are more than one fields pointing to the column Search Key in the tab Lines of the Contract window.
[WADValidation] 67 [main] ERROR org.openbravo.wad.validation.WADValidationResult - Error in field test. There are more than one fields pointing to the column Search Key in the tab Lines of the Contract window.
[WADValidation] 74 [main] INFO org.openbravo.wad.validation.WADValidationResult - Module Hierarchical Contract Management does not comply with Openbravo naming rules.
[WADValidation] 81 [main] INFO org.openbravo.wad.validation.WADValidationResult - The rebuild process has completed successfully but this module
[WADValidation] 87 [main] INFO org.openbravo.wad.validation.WADValidationResult - might cause conflicts with other modules in the future.
[WADValidation] 95 [main] INFO org.openbravo.wad.validation.WADValidationResult - Please request the author of this module to produce a new version
[WADValidation] 102 [main] INFO org.openbravo.wad.validation.WADValidationResult - that addresses these violations.
The tab is working and displaying the information. Probably this validation should be ignored for this particular case.
No tags attached.
has duplicate defect 0023522 closed AugustoMauch Wad validation error while creating two different property fields on a window pointing to the same ad_column_id 
related to defect 0021943 acknowledged Triage Platform Base smartbuild WAD validation is failing in some circunstances 
Issue History
2012-08-31 14:57miruritaNew Issue
2012-08-31 14:57miruritaAssigned To => alostale
2012-08-31 14:57miruritaModules => Core
2012-08-31 15:02miruritaNote Added: 0051715
2012-09-03 09:47azabaletaIssue Monitored: azabaleta
2012-09-03 10:17AugustoMauchAssigned Toalostale => AugustoMauch
2012-09-07 12:03AugustoMauchClosed by => marvintm
2012-09-07 12:07hgbotCheckin
2012-09-07 12:07hgbotNote Added: 0051925
2012-09-07 12:07hgbotStatusnew => resolved
2012-09-07 12:07hgbotResolutionopen => fixed
2012-09-07 12:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/280ef09a637d929a2dce30db91968e51360d64b4 [^]
2012-09-25 11:15marvintmStatusresolved => closed
2012-09-25 11:15marvintmFixed in Version => 3.0MP15
2012-09-26 17:18hudsonbotCheckin
2012-09-26 17:18hudsonbotNote Added: 0052710
2012-10-16 08:35miruritaRelationship addedrelated to 0021943
2013-04-10 13:28AugustoMauchRelationship addedhas duplicate 0023522

Notes
(0051715)
mirurita   
2012-08-31 15:02   
This is an important issue for Contract management project.
(0051925)
hgbot   
2012-09-07 12:07   
Repository: erp/devel/pi
Changeset: 280ef09a637d929a2dce30db91968e51360d64b4
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Sep 07 12:06:24 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/280ef09a637d929a2dce30db91968e51360d64b4 [^]

Fixes issue 21525: Adaps WAD validation to support property paths

One of the WAD validations checks if there exists in a tab multiple fields that point to the same column. This validation does not apply to property paths, because even though they point to the same column, they show the information about a parent tab.

---
M src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql
---
(0052710)
hudsonbot   
2012-09-26 17:18   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b780e90c6452 [^]

Maturity status: Test