Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026628Openbravo ERPA. Platformpublic2014-05-19 19:462014-06-04 12:05
caristu 
guillermogil 
urgentmajorhave not tried
closedfixed 
5
pi 
3.0PR14Q33.0PR14Q3 
shankarb
Core
No
0026628: Unexpected behavior after completing an invoice
If we create a sales invoice line using the intro button of the keyboard and after that we complete the invoice, then the lines of the invoice are not loaded correctly until we open the window again.

The following error is raised in the log after completing the invoice:

ERROR org.hibernate.util.JDBCExceptionReporter - Batch entry 0 insert into C_InvoiceLine (...
ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: @20501@
ERROR org.openbravo.service.json.DefaultJsonDataService - ERROR: @20501@
1) Go to the [Sales Invoice] window
2) Create a new record in the header and save it
3) Create a new line in grid mode and save the record using the INTRO button of the keyboard. Notice that a new record is automatically generated in the grid.
4) Without removing that new line, click on the "Complete" button. The error appears in the log.
5) Print the Invoice. Notice that all the invoice lines are now loaded in the [Lines] tab without using any criteria.
6) Click on any record in the grid. The corresponding lines are not loaded correctly neither.
No tags attached.
Issue History
2014-05-19 19:46caristuNew Issue
2014-05-19 19:46caristuAssigned To => AugustoMauch
2014-05-19 19:46caristuModules => Core
2014-05-19 19:46caristuResolution time => 1400796000
2014-05-19 19:46caristuTriggers an Emergency Pack => No
2014-05-19 19:53caristuIssue Monitored: networkb
2014-05-20 08:43caristuversion => pi
2014-05-20 10:54guillermogilAssigned ToAugustoMauch => guillermogil
2014-05-20 16:16guillermogilIssue Monitored: AugustoMauch
2014-05-20 16:16guillermogilReview Assigned To => AugustoMauch
2014-05-21 08:09hgbotCheckin
2014-05-21 08:09hgbotNote Added: 0067332
2014-05-21 08:09hgbotStatusnew => resolved
2014-05-21 08:09hgbotResolutionopen => fixed
2014-05-21 08:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/016a009f0d6c7971bd02b99ec52f9dda6a3c2442 [^]
2014-05-21 18:34hudsonbotCheckin
2014-05-21 18:34hudsonbotNote Added: 0067350
2014-06-03 17:11AugustoMauchIssue Monitored: shankarb
2014-06-03 17:12AugustoMauchReview Assigned ToAugustoMauch => shankarb
2014-06-04 11:48dmitry_mezentsevNote Added: 0067747
2014-06-04 12:05shankarbNote Added: 0067750
2014-06-04 12:05shankarbStatusresolved => closed
2014-06-04 12:05shankarbFixed in Version => PR14Q3

Notes
(0067332)
hgbot   
2014-05-21 08:09   
Repository: erp/devel/pi
Changeset: 016a009f0d6c7971bd02b99ec52f9dda6a3c2442
Author: Guillermo Gil <guillermo.gil <at> openbravo.com>
Date: Tue May 20 16:15:53 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/016a009f0d6c7971bd02b99ec52f9dda6a3c2442 [^]

Fixed issue 26628: Unexpected behavior after completing an invoice

Added structure to execute autosave if the record is newand it has not been modified

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
---
(0067350)
hudsonbot   
2014-05-21 18:34   
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/30be5c8a933a [^]
Maturity status: Test
(0067747)
dmitry_mezentsev   
2014-06-04 11:48   
The issue is resolved and not closed for 14 days now!!
(0067750)
shankarb   
2014-06-04 12:05   
Code reviewed and verified in pi changeset ee7234dc7224