Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026395Openbravo ERPA. Platformpublic2014-04-28 10:462014-10-01 16:29
guillermogil 
guillermogil 
immediatecriticalalways
closedfixed 
30Professional Appliance
pi 
3.0PR14Q2 
shankarb
Google Chrome
Core
Production - Confirmed Stable
2013-11-21
3.0MP30
https://code.openbravo.com/erp/devel/pi/rev/091cc28d75e0fd11049eabfc3fdcc67825783830 [^]
No
0026395: If you create a sales invoice in grid view and save it by losing focus a new empty record appears
If you create a sales invoice and save it by losing focus a new empty record appears. There is an error on the console (Uncaught TypeError: Cannot read property '_editValues' of undefined) and summary functions do not work.
- Create a sales invoice on grid view.
- Save it by losing focus.
- An error appears and summary fields (if any) are not refreshed.
Modify ob-view-grid.js

line:
this.setEditValue(this.getEditRow(), this.getField(colNum).name, record[this.getField(colNum).name], true, true);

Use rowNum instead this.getEditRow()
No tags attached.
related to defect 00250283.0MP30 closed shankarb Default value applied again after updating a numeric field with a trigger 
png Screenshot from 2014-04-28 10:45:06.png (281,914) 2014-04-28 10:46
https://issues.openbravo.com/file_download.php?file_id=6887&type=bug
Issue History
2014-04-28 10:46guillermogilNew Issue
2014-04-28 10:46guillermogilAssigned To => guillermogil
2014-04-28 10:46guillermogilFile Added: Screenshot from 2014-04-28 10:45:06.png
2014-04-28 10:46guillermogilWeb browser => Google Chrome
2014-04-28 10:46guillermogilModules => Core
2014-04-28 10:46guillermogilTriggers an Emergency Pack => No
2014-04-28 10:47guillermogilWeb browserGoogle Chrome => Google Chrome
2014-04-28 10:47guillermogilPrioritynormal => immediate
2014-04-28 10:48guillermogilWeb browserGoogle Chrome => Google Chrome
2014-04-28 10:48guillermogilRegression level => Production - Confirmed Stable
2014-04-28 10:48guillermogilRegression date => 2013-11-21
2014-04-28 10:48guillermogilRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/091cc28d75e0fd11049eabfc3fdcc67825783830 [^]
2014-04-28 10:49AugustoMauchWeb browserGoogle Chrome => Google Chrome
2014-04-28 10:49AugustoMauchRegression levelProduction - Confirmed Stable =>
2014-04-28 10:49AugustoMauchRegression date2013-11-21 =>
2014-04-28 10:49AugustoMauchRegression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/091cc28d75e0fd11049eabfc3fdcc67825783830 [^] =>
2014-04-28 10:49AugustoMauchSummaryIf you create a sales invoice and save it by loosing focus a new empty record appears => If you create a sales invoice in grid view and save it by losing focus a new empty record appears
2014-04-28 10:49AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=5755#r5755
2014-04-28 10:49AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5757#r5757
2014-04-28 10:55guillermogilRelationship addedrelated to 0025028
2014-04-28 11:03guillermogilWeb browserGoogle Chrome => Google Chrome
2014-04-28 11:03guillermogilRegression level => Production - Confirmed Stable
2014-04-28 11:03guillermogilRegression date => 2013-11-21
2014-04-28 11:03guillermogilRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/091cc28d75e0fd11049eabfc3fdcc67825783830 [^]
2014-04-28 11:03guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5758#r5758
2014-04-28 11:08guillermogilIssue Monitored: shankarb
2014-04-28 11:08guillermogilReview Assigned To => shankarb
2014-04-28 11:08guillermogilWeb browserGoogle Chrome => Google Chrome
2014-04-28 11:22hgbotCheckin
2014-04-28 11:22hgbotNote Added: 0066642
2014-04-28 11:22hgbotStatusnew => resolved
2014-04-28 11:22hgbotResolutionopen => fixed
2014-04-28 11:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5470b601b14e7dcd8b7f9baa26aefe6521d8b5d5 [^]
2014-05-02 08:29shankarbNote Added: 0066776
2014-05-02 08:29shankarbStatusresolved => closed
2014-05-02 08:29shankarbFixed in Version => PR14Q2
2014-05-07 18:12hudsonbotCheckin
2014-05-07 18:12hudsonbotNote Added: 0066978
2014-06-03 16:57johnfandlIssue Monitored: johnfandl
2014-10-01 16:29plujanWeb browserGoogle Chrome => Google Chrome
2014-10-01 16:29plujanRegression introduced in release => 3.0MP30

Notes
(0066642)
hgbot   
2014-04-28 11:22   
Repository: erp/devel/pi
Changeset: 5470b601b14e7dcd8b7f9baa26aefe6521d8b5d5
Author: Guillermo Gil <guillermo.gil <at> openbravo.com>
Date: Mon Apr 28 11:21:55 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5470b601b14e7dcd8b7f9baa26aefe6521d8b5d5 [^]

Fixed issue 26395: Create a sales invoice in grid & save it by losing focus

On create a new record this.getEditRow() does not exists, used rowNum instead this.getEditRow()

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0066776)
shankarb   
2014-05-02 08:29   
Code reviewed and verified in pi changeset 6d818cd5ed38.
(0066978)
hudsonbot   
2014-05-07 18:12   
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/02ca2648bcdc [^]
Maturity status: Test