Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012778Openbravo ERP00. Application dictionarypublic2010-03-23 19:142010-05-18 12:12
gorkaion 
alostale 
urgentminoralways
closedfixed 
20Gentoo
 
2.50MP172.50MP15 
Core
No
0012778: Wrong record identifier on new records
Having a parent tab that includes as record identifier a field that it is a list or a foreign key.
And a child tab of the previous that has the parent read only field set with "search" reference without any search reference assigned.
When it is craeted a new record in the child tab teh identifier of the parent record is wrongly generated showing the uuid or the value instead of the identifier.
For example a parent tab with name + currency as identifiers. In the child tab when a new records is being created shows "name + 102" but when the record is saved it shows "name + EUR".
go to and create a record in:
Financial Management || Receivables & Payables || Transactions || Manual Settlement || Manual Settlement >> Create Payment

This tab includes as identifier the "Form of payment" field (set it as "Bank Deposit".

Now go to the "Balance Payment" tab and try to create a new record. On Grid view the identifier is right and shows "Bank Deposit" on it. Press "new", it shows "5", save the record and the identifier is fixed.
No tags attached.
Issue History
2010-03-23 19:14gorkaionNew Issue
2010-03-23 19:14gorkaionAssigned To => alostale
2010-03-29 08:19alostaleStatusnew => scheduled
2010-03-29 08:19alostalefix_in_branch => pi
2010-04-06 15:15hgbotCheckin
2010-04-06 15:15hgbotNote Added: 0025903
2010-04-06 15:15hgbotStatusscheduled => resolved
2010-04-06 15:15hgbotResolutionopen => fixed
2010-04-06 15:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/34b8ebfe4d69dafd7cc1e7c0c4085251296ec4bb [^]
2010-04-14 17:33marvintmNote Added: 0026208
2010-04-14 17:33marvintmStatusresolved => closed
2010-04-14 17:33marvintmFixed in Version => 2.50MP15
2010-04-15 00:00anonymoussf_bug_id0 => 2987421
2010-04-19 21:12hudsonbotCheckin
2010-04-19 21:12hudsonbotNote Added: 0026417
2010-05-18 12:12gorka_gilTarget Version2.50MP15 => 2.50MP17

Notes
(0025903)
hgbot   
2010-04-06 15:15   
Repository: erp/devel/pi
Changeset: 34b8ebfe4d69dafd7cc1e7c0c4085251296ec4bb
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Apr 06 15:26:33 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/34b8ebfe4d69dafd7cc1e7c0c4085251296ec4bb [^]

fixed bug 12778: Wrong record identifier on new records

Default values for new records are calculated now using the standard column identifier

---
M src-wad/src/org/openbravo/wad/Fields_data.xsql
M src-wad/src/org/openbravo/wad/Wad.java
M src-wad/src/org/openbravo/wad/WadUtility.java
M src-wad/src/org/openbravo/wad/controls/WADButton.java
M src-wad/src/org/openbravo/wad/controls/WADImage.java
M src-wad/src/org/openbravo/wad/controls/WADSearch.java
M src-wad/src/org/openbravo/wad/datasource.xml
M src-wad/src/org/openbravo/wad/datasource.xsqlxml
---
(0026208)
marvintm   
2010-04-14 17:33   
Tested that when creating a new record in "Balance Payment", even if it's not yet saved, the identifier of the parent record is correctly shown.
(0026417)
hudsonbot   
2010-04-19 21:12   
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/34b8ebfe4d69 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]