Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021657Openbravo ERPA. Platformpublic2012-09-14 14:362012-09-26 17:32
egoitz 
AugustoMauch 
immediatemajoralways
closedfixed 
5
3.0MP14 
3.0MP163.0MP16 
Core
Production - Confirmed Stable
2011-10-26
https://code.openbravo.com/erp/devel/pi/rev/f9b05776d657 [^]
yes
0021657: The windows were the id field is checked as show in grid does not work
By default the show in GRID field is filled with 'Y' (SHOWINRELATION).
Since mp12, the windows defined with the field of the primary key with
show in relation =Y does not work.
The save action can not be performed.

AS the default value is Y lof of the partners have modules defined on this way,what causes the windows not work.

This happens on "Import Loader Format" window on core.

-Activate the instance to show properly the "Import Loader Format" window.
-Then accesss to the window and try to save a new recored.
*The save button is not enabled after enter data on the mandatory fields
If all the fields pointing to key columns must be defined with SHOWINRELATION='N'
a modulescript should be created to solve that data in all the modules of the partners (also core) that have incorrect data.
(this has an inpediment becasue all the modules will still incorrectly defined)
Apart of that Add a trigger to avoid getting into this error or change the default of the column.

As in mp11.1 it was working well allow to having the fields on this way would be the best solution.
No tags attached.
has duplicate defect 0021261 closed AugustoMauch It is not possible to save a new record in window which shows in grid the key field. 
related to design defect 0021688 new AugustoMauch Access to backend ID from the frontend (javascript) 
Issue History
2012-09-14 14:36egoitzNew Issue
2012-09-14 14:36egoitzAssigned To => AugustoMauch
2012-09-14 14:36egoitzModules => Core
2012-09-14 14:36egoitzResolution time => 1347832800
2012-09-14 14:37egoitzRegression level => Production - QA Approved
2012-09-14 16:51AugustoMauchRelationship addedhas duplicate 0021261
2012-09-17 10:17AugustoMauchClosed by => dbaz
2012-09-17 10:17AugustoMauchRegression levelProduction - QA Approved => Production - Confirmed Stable
2012-09-17 10:17AugustoMauchRegression date => 2011-10-26
2012-09-17 10:17AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/f9b05776d657 [^]
2012-09-17 10:25hgbotCheckin
2012-09-17 10:25hgbotNote Added: 0052157
2012-09-17 10:25hgbotStatusnew => resolved
2012-09-17 10:25hgbotResolutionopen => fixed
2012-09-17 10:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/35a4bff5296e687ae949a2ae77a131baea047457 [^]
2012-09-19 11:28AugustoMauchIssue Monitored: AugustoMauch
2012-09-19 11:28AugustoMauchIssue End Monitor: AugustoMauch
2012-09-19 12:10dbazNote Added: 0052220
2012-09-19 13:22dbazNote Added: 0052224
2012-09-19 13:22dbazStatusresolved => closed
2012-09-19 13:22dbazFixed in Version => 3.0MP16
2012-09-19 15:20dbazRelationship addedrelated to 0021688
2012-09-26 17:16hgbotCheckin
2012-09-26 17:16hgbotNote Added: 0052661
2012-09-26 17:16hgbotStatusclosed => resolved
2012-09-26 17:16hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/35a4bff5296e687ae949a2ae77a131baea047457 [^] => http://code.openbravo.com/erp/devel/pi/rev/d21ed23d426e4a8f9f6616231922c5c77a4bcfa4 [^]
2012-09-26 17:19hudsonbotCheckin
2012-09-26 17:19hudsonbotNote Added: 0052769
2012-09-26 17:32gorka_gilStatusresolved => closed

Notes
(0052157)
hgbot   
2012-09-17 10:25   
Repository: erp/devel/pi
Changeset: 35a4bff5296e687ae949a2ae77a131baea047457
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Sep 17 10:22:29 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/35a4bff5296e687ae949a2ae77a131baea047457 [^]

Fixes issue 21657: It is possible to save views that have ids in its fields

If a window that an id in its fields, it was not possible to save new records because the ID was a mandatory field without value, so the save button was not enabled. Now the allRequiredFieldsSet function has been modified, so it does not take into account id fields, because its value will be set in dal before inserting the new row in the database.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0052220)
dbaz   
2012-09-19 12:10   
To get "Import Loader Format" install this module:
https://code.openbravo.com/erp/mods/org.openbravo.importdata/ [^]
(0052224)
dbaz   
2012-09-19 13:22   
Reviewed @ changeset: 17978 - 571b10dd474d
(0052661)
hgbot   
2012-09-26 17:16   
Repository: erp/devel/pi
Changeset: d21ed23d426e4a8f9f6616231922c5c77a4bcfa4
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Sep 17 10:22:29 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d21ed23d426e4a8f9f6616231922c5c77a4bcfa4 [^]

Fixes issue 21657: It is possible to save views that have ids in its fields

If a window that an id in its fields, it was not possible to save new records because the ID was a mandatory field without value, so the save button was not enabled. Now the allRequiredFieldsSet function has been modified, so it does not take into account id fields, because its value will be set in dal before inserting the new row in the database.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0052769)
hudsonbot   
2012-09-26 17: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/b780e90c6452 [^]

Maturity status: Test