Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030684Openbravo ERP00. Application dictionarypublic2015-08-27 12:112015-09-01 18:22
gorkaion 
caristu 
normalmajoralways
closedfixed 
5
 
3.0PR15Q4 
AugustoMauch
Core
No
0030684: Form field of characteristic description reference fails when added as property field
When the characteristic description column of a product is added in a tab using a property path field it is not working correctly.

The grid view is correct and filter works as expected.

The form view is incorrect as the field is always hidden.
As System Admin with a module in development.

Go to Window, Tab and Fields window and open the "Discounts and Promotions" window definition.

On the "Products" tab add a new field with the property "product.characteristicDescription". Make sure that it is flagged to be visible in form and grid views.

As Openbravo Admin
Create a new Characteristic not variant with a single value.
Go to Product window and add the characteristic to an existing product.
Assign the characteristic value using the "Update Characteristics" button.
Go to "Discounts and Promotions" and create a new one.
Go to "Products" tab and insert the product with the characteristics.

Check that in grid view the characteristic description columns is there with the correct value.
Check that in form view there isn't any field with the characteristic.
The CharacteristicsUIDefinition getFieldProperties() method is not taking into account that the field could be a property path field.
No tags attached.
patch issue-30684-tentative.patch (1,512) 2015-08-27 12:14
https://issues.openbravo.com/file_download.php?file_id=8387&type=bug
diff patchIssue30684.diff (1,280) 2015-08-28 15:22
https://issues.openbravo.com/file_download.php?file_id=8389&type=bug
Issue History
2015-08-27 12:11gorkaionNew Issue
2015-08-27 12:11gorkaionAssigned To => platform
2015-08-27 12:11gorkaionModules => Core
2015-08-27 12:11gorkaionTriggers an Emergency Pack => No
2015-08-27 12:11gorkaionSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9278#r9278
2015-08-27 12:14gorkaionFile Added: issue-30684-tentative.patch
2015-08-27 12:16gorkaionNote Added: 0079777
2015-08-28 08:46gorkaionSeveritycritical => major
2015-08-28 15:22caristuFile Added: patchIssue30684.diff
2015-08-28 15:23caristuNote Added: 0079801
2015-08-31 09:25caristuNote Edited: 0079801bug_revision_view_page.php?bugnote_id=0079801#r9289
2015-08-31 09:26caristuNote Edited: 0079801bug_revision_view_page.php?bugnote_id=0079801#r9290
2015-09-01 10:58caristuAssigned Toplatform => caristu
2015-09-01 10:59caristuStatusnew => scheduled
2015-09-01 11:52caristuReview Assigned To => AugustoMauch
2015-09-01 11:52caristuIssue Monitored: AugustoMauch
2015-09-01 11:53hgbotCheckin
2015-09-01 11:53hgbotNote Added: 0079988
2015-09-01 11:53hgbotStatusscheduled => resolved
2015-09-01 11:53hgbotResolutionopen => fixed
2015-09-01 11:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/eb72b8a596aeba7e97007ada347ee07e3efb5cc9 [^]
2015-09-01 13:30AugustoMauchNote Added: 0079991
2015-09-01 13:30AugustoMauchStatusresolved => closed
2015-09-01 13:30AugustoMauchFixed in Version => 3.0PR15Q4
2015-09-01 18:22hudsonbotCheckin
2015-09-01 18:22hudsonbotNote Added: 0080004

Notes
(0079777)
gorkaion   
2015-08-27 12:16   
Attached a patch that solves the reported steps to reproduce issue.

It is not tested if that would also fix the scenario where the Product field is also added as a Property Path.

It could be tested in the Invoice Line tabs adding the "Product" field and its "Characteristic Description" field of the related Order Line.
(0079801)
caristu   
2015-08-28 15:23   
(edited on: 2015-08-31 09:26)
Attached another possible solution. It has been pushed to try.

(0079988)
hgbot   
2015-09-01 11:53   
Repository: erp/devel/pi
Changeset: eb72b8a596aeba7e97007ada347ee07e3efb5cc9
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Sep 01 11:52:09 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/eb72b8a596aeba7e97007ada347ee07e3efb5cc9 [^]

Fixes issue 30684: Characteristic description fails with property field in form

The problem was that the column value was not being retrieved properly for property fields, because in this case the correct name for the property field in the request information was not being used.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/CharacteristicsUIDefinition.java
---
(0079991)
AugustoMauch   
2015-09-01 13:30   
Code reviewed and verified in pi@eb72b8a596ae
(0080004)
hudsonbot   
2015-09-01 18:22   
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/3a096b275cba [^]
Maturity status: Test