Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0025754
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2014-02-18 06:312014-03-25 19:47
ReporteriperdomoView Statuspublic 
Assigned Toshankarb 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision8780b0463263
ProjectionnoneETAnoneTarget Version3.0PR14Q2
OSLinux 64 bitDatabaseOracleJava version1.6.0_30
OS VersionOracle Linux 3.8.13-26.1.1.el6ueDatabase version11.2.0 (XE)Ant version1.7.1
Product Version3.0MP29.1SCM revision 
Review Assigned ToAugustoMauch
Web browserApple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0025754: Wrong behavior when calculating the value of a property field for a new record (FIC)

DescriptionWhen a child tab uses a field based on a property from a parent entity, the current behavior for calculating the value for the field on *NEW* record is wrong.
Steps To Reproduce* Add a new property based field to Lines tab on Sales Order window
* The field will show the currency of the price list: order.priceList.currency
* http://wiki.openbravo.com/wiki/How_to_use_property_fields [^]

When testing:

* Pick a organization with *no* default currency, or pick a price list with a different currency than the default for the organization
* Create a new line, and you'll see that the currency field uses some default that is not the one selected in the header.

Current behavior:

* On 'NEW' mode, FIC will try to calculate a *default* value for that field, trying to pick a currency from the Organization or just the first one in the list of currencies, and *not* the actual value for the property in the header

* If you save, you'll find that the value of the currency gets fixed to the one selected in the header
TagsNo tags attached.
Attached Filespng file icon property-field.png [^] (100,045 bytes) 2014-02-18 06:31


png file icon property-field2.png [^] (109,516 bytes) 2014-02-18 06:31


diff file icon AD_FIELD.xml.diff [^] (3,021 bytes) 2014-02-18 06:31 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0025359 closedshankarb Invalid currency in invoice plan master for service contract 
related to defect 0031305 closedplatform NullPointerException when creating a new record on the header having a property field 
related to defect 0028977 closedcaristu NPE if property field can not reach the complete path 
related to defect 0055060 newTriage Platform Base Property fields show wrong values under some circumstances 

-  Notes
(0064305)
iperdomo (reporter)
2014-02-18 06:33

The issue can be easily reproduced by installing the examples module [1], and applying the attached AD_FIELD.xml.diff patch.

[1] https://code.openbravo.com/erp/mods/org.openbravo.client.application.examples [^]
(0065387)
hgbot (developer)
2014-03-24 12:06

Repository: erp/devel/pi
Changeset: 8780b04632631f7512582fcb3e6b74faf1a749de
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon Mar 24 16:33:35 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/8780b04632631f7512582fcb3e6b74faf1a749de [^]

Fixes Issue 0025754, Fixes Issue 25359: Property fields are evaluated on NEW request

When a new record is created, property fields were not evaluated and default values were sent.
Now the property fields are tried to be evaluated, if value is not found, null is returned.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0065399)
AugustoMauch (administrator)
2014-03-24 15:45

Code reviewed and verified in pi@8780b0463263
(0065445)
hudsonbot (developer)
2014-03-25 19:47

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/05169b1f5a79 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-02-18 06:31 iperdomo New Issue
2014-02-18 06:31 iperdomo Assigned To => AugustoMauch
2014-02-18 06:31 iperdomo File Added: property-field.png
2014-02-18 06:31 iperdomo Web browser => Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
2014-02-18 06:31 iperdomo Modules => Core
2014-02-18 06:31 iperdomo Triggers an Emergency Pack => No
2014-02-18 06:31 iperdomo File Added: property-field2.png
2014-02-18 06:31 iperdomo File Added: AD_FIELD.xml.diff
2014-02-18 06:33 iperdomo Note Added: 0064305
2014-03-17 08:21 alostale Web browser Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox => Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
2014-03-17 08:21 alostale Target Version => PR14Q2
2014-03-17 09:25 jonalegriaesarte Web browser Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox => Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
2014-03-17 09:25 jonalegriaesarte Resolution time => 1395961200
2014-03-19 05:25 shankarb Assigned To AugustoMauch => shankarb
2014-03-24 08:13 shankarb Relationship added related to 0025359
2014-03-24 08:26 shankarb Status new => scheduled
2014-03-24 08:26 shankarb fix_in_branch => pi
2014-03-24 12:04 shankarb Review Assigned To => AugustoMauch
2014-03-24 12:04 shankarb Web browser Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox => Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox
2014-03-24 12:04 shankarb fix_in_branch pi =>
2014-03-24 12:05 shankarb Issue Monitored: AugustoMauch
2014-03-24 12:06 hgbot Checkin
2014-03-24 12:06 hgbot Note Added: 0065387
2014-03-24 12:06 hgbot Status scheduled => resolved
2014-03-24 12:06 hgbot Resolution open => fixed
2014-03-24 12:06 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8780b04632631f7512582fcb3e6b74faf1a749de [^]
2014-03-24 15:45 AugustoMauch Note Added: 0065399
2014-03-24 15:45 AugustoMauch Status resolved => closed
2014-03-25 19:47 hudsonbot Checkin
2014-03-25 19:47 hudsonbot Note Added: 0065445
2015-10-30 09:31 caristu Relationship added related to 0031305
2015-11-13 08:48 caristu Relationship added related to 0028977
2024-03-26 18:36 caristu Relationship added related to 0055060


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker