Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034824Openbravo ERPA. Platformpublic2016-12-27 10:202017-03-15 20:19
umartirena 
NaroaIriarte 
urgentmajoralways
closedfixed 
5
 
3.0PR17Q2 
alostale
Core
No
0034824: Mandatory columns are not taken into account in pick & edit grids in which records can be added.
Mandatory columns are not taken into account in pick & edit grids in which records can be added. The field is displayed in yellow when creating the record, and when leaving the field a red border is added. But, still the record is saved and the "Done" button does not look into that field when evaluating if needs to be enabled or not.
In Live Builds:
 * Go to 'Payment In' window.
 * Create a new record. Set 'Amount' to 10.00
 * Click on 'Add Details'. Add Payment popup is opened.
 * Go to GL Items section, open it and click on "Add New".
 * Leave 'Gl Item' field empty and set 10.00 to 'Received In' field.
 * Press enter to save the record. Check that the record is correctly saved without any value in GL Item field (which is mandatory).
 * Click on 'Done' button. The following error is displayed in a window message: "id to load is required for loading"
I don't have a concrete solution. There could be different options:
 * Disable/Enable the 'Done' button based also on grid fields.
 * Don't allow to save a record with empty mandatory fields.
No tags attached.
has duplicate defect 0036102 closed inigosanchez Some mandatory fields can be left empty 
related to defect 0035069 acknowledged Triage Platform Base A row inserted in GL Item section of Add details pick & execute cannot be modified 
causes defect 0036320 closed caristu Create Lines P&E window in Purchase Order does not respond to select other record after selecting any of the record 
Issue History
2016-12-27 10:20umartirenaNew Issue
2016-12-27 10:20umartirenaAssigned To => platform
2016-12-27 10:20umartirenaModules => Core
2016-12-27 10:20umartirenaTriggers an Emergency Pack => No
2017-01-11 09:10alostaleStatusnew => acknowledged
2017-01-25 17:44NaroaIriarteAssigned Toplatform => NaroaIriarte
2017-01-25 17:44NaroaIriarteStatusacknowledged => scheduled
2017-01-27 13:49NaroaIriarteRelationship addedrelated to 0035069
2017-02-01 09:37hgbotCheckin
2017-02-01 09:37hgbotNote Added: 0093976
2017-02-01 09:37hgbotStatusscheduled => resolved
2017-02-01 09:37hgbotResolutionopen => fixed
2017-02-01 09:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c22eb99a6d5c155eec980d7ff3b08990ff849032 [^]
2017-02-01 11:18NaroaIriarteReview Assigned To => alostale
2017-02-03 09:09alostaleNote Added: 0094027
2017-02-03 09:09alostaleStatusresolved => new
2017-02-03 09:09alostaleResolutionfixed => open
2017-02-03 10:13NaroaIriarteStatusnew => acknowledged
2017-02-03 10:13NaroaIriarteStatusacknowledged => scheduled
2017-02-06 09:27hgbotCheckin
2017-02-06 09:27hgbotNote Added: 0094061
2017-02-06 09:28NaroaIriarteStatusscheduled => resolved
2017-02-06 09:28NaroaIriarteResolutionopen => fixed
2017-02-10 08:37alostaleNote Added: 0094202
2017-02-10 08:37alostaleStatusresolved => closed
2017-02-10 08:37alostaleFixed in Version => 3.0PR17Q2
2017-03-15 20:18hudsonbotCheckin
2017-03-15 20:18hudsonbotNote Added: 0095149
2017-03-15 20:19hudsonbotCheckin
2017-03-15 20:19hudsonbotNote Added: 0095159
2017-06-02 11:34alostaleRelationship addedrelated to 0036102
2017-06-23 11:30caristuRelationship addedcauses 0036320
2017-06-26 17:30inigosanchezRelationship replacedhas duplicate 0036102

Notes
(0093976)
hgbot   
2017-02-01 09:37   
Repository: erp/devel/pi
Changeset: c22eb99a6d5c155eec980d7ff3b08990ff849032
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Tue Jan 31 10:48:55 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c22eb99a6d5c155eec980d7ff3b08990ff849032 [^]

Fixed issue 34824:It was possible saving a record with mandatory columns unset

In the add payment window, in the gl items section, it was possible saving a record with mandatory columns unset.
This has been fixed by adding a condition before tha call to the super's hideInLineEditor method. This condition chacks if in the current row, there exists a mandatory field which is unset.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
---
(0094027)
alostale   
2017-02-03 09:09   
reopening, see: https://docs.google.com/spreadsheets/d/18l2biKWeG6iGDIPqO6VuYQ_TtP_6YxyQU4KSrPvQlJ8/edit#gid=0 [^]
(0094061)
hgbot   
2017-02-06 09:27   
Repository: erp/devel/pi
Changeset: 1984ef1c1bbcbd14d6078adca049d3b3858135dc
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Fri Feb 03 13:01:13 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1984ef1c1bbcbd14d6078adca049d3b3858135dc [^]

Related with issue34824: Mandatory columns cannot be empty nor null

It was also possible to save a record in the "GL Items" section of the "Add Payment" parameter window when a mandatory column had a null value.
This has been fixed by adding a new condition which now checks if the mandatory column has an undefined value or a null value. And if it is true, the record is not saved.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
---
(0094202)
alostale   
2017-02-10 08:37   
code reviewed + tested
(0095149)
hudsonbot   
2017-03-15 20:18   
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/54e102bef53e [^]
Maturity status: Test
(0095159)
hudsonbot   
2017-03-15 20:19   
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/54e102bef53e [^]
Maturity status: Test