Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028623Openbravo ERPA. Platformpublic2015-01-15 12:582015-02-04 20:34
AugustoMauch 
NaroaIriarte 
immediateminorhave not tried
closedfixed 
5
 
3.0PR15Q13.0PR15Q2 
AugustoMauch
Core
Coding ( Testing )
2014-11-27
main
https://code.openbravo.com/erp/devel/pi/rev/d60c4bb642ea8203e7744cf4f58f9851b004b869 [^]
No
0028623: When a user opens a window using the Create New widget, the entry in the Recent Views list will not allow to create a new record
In the recent views list the list of the last five opened window is shown. If the user can add records in header tab of those windows, there will be a green icon beside the window name in the recent views list. Clicking that icon will create a new record in the header tab of that window.

The problem is that if the user opens a window using the Create New widget, when the window is added to the recent views list the green icon will not be shown.
- Using the create new widget open any window that allows creating records and that is not currently shown in the recent views list. The window will be opened in form view so that the user can create a new record.
- Go back to the workspace and check that the window has been added to the recent views list, but that the green icon is not shown.
No tags attached.
caused by defect 00277873.0PR15Q1 closed NaroaIriarte Create new in workspace allows the user to create new entries in tabs defined as Edit Only 
related to defect 0028679 acknowledged Triage Platform Base After opening a record/view from the direct link, the window is not shown in recent views layout. 
Issue History
2015-01-15 12:58AugustoMauchNew Issue
2015-01-15 12:58AugustoMauchAssigned To => NaroaIriarte
2015-01-15 12:58AugustoMauchModules => Core
2015-01-15 12:58AugustoMauchRegression level => Coding ( Testing )
2015-01-15 12:58AugustoMauchRegression date => 2014-11-27
2015-01-15 12:58AugustoMauchRegression introduced in release => main
2015-01-15 12:58AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/d60c4bb642ea8203e7744cf4f58f9851b004b869 [^]
2015-01-15 12:58AugustoMauchTriggers an Emergency Pack => No
2015-01-15 13:05AugustoMauchRelationship addedcaused by 0027787
2015-01-19 14:10NaroaIriarteNote Added: 0073605
2015-01-19 14:16NaroaIriarteNote Added: 0073606
2015-01-19 14:17NaroaIriarteNote Edited: 0073606bug_revision_view_page.php?bugnote_id=0073606#r7485
2015-01-19 16:07NaroaIriarteRelationship addedrelated to 0028679
2015-01-20 19:01hgbotCheckin
2015-01-20 19:01hgbotNote Added: 0073659
2015-01-20 19:01hgbotStatusnew => resolved
2015-01-20 19:01hgbotResolutionopen => fixed
2015-01-20 19:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e3b446f2e3b0077f4fb33ae61e9fb5f61b2d5eb5 [^]
2015-01-20 19:02AugustoMauchReview Assigned To => AugustoMauch
2015-01-20 19:02AugustoMauchNote Added: 0073660
2015-01-20 19:02AugustoMauchStatusresolved => closed
2015-01-20 19:02AugustoMauchFixed in Version => 3.0PR15Q2
2015-02-04 20:34hudsonbotCheckin
2015-02-04 20:34hudsonbotNote Added: 0074167

Notes
(0073605)
NaroaIriarte   
2015-01-19 14:10   
If at first a window was editable and it was possible to create a new record and if one creates a new record from the quick create new menu, that window is cached in the quick create new menu. So, if the role access changes to "read only" or if the UI Pattern for that window changes from "Standard" to "read only", "edit only" or "edit and delete only", it is possible to create a new record clicking in the name which is cached in the quick create new menu.
For avoiding this, we only have to open other windows from the quick create new menu, and at last our window will disappear from there.
(0073606)
NaroaIriarte   
2015-01-19 14:16   
(edited on: 2015-01-19 14:17)
Some tests have been performed:
The same tests that were performed for the issue 27787 and other:

- When tab/window access for role is editable, clicking the quick create new icon
and making sure that the green small "create new" icon by the name of the window, in the
recent views layout, is still there.

- Changing the role's accesses in every combination, and checking if the small "create new" icon by the name of the window in the recent views layout appears or not. This works well too.

(0073659)
hgbot   
2015-01-20 19:01   
Repository: erp/devel/pi
Changeset: e3b446f2e3b0077f4fb33ae61e9fb5f61b2d5eb5
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Mon Jan 19 14:42:57 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e3b446f2e3b0077f4fb33ae61e9fb5f61b2d5eb5 [^]

Fixed issue 28623: Window's behaviour changes when creating a new record.

When a window is opened using the "quick create new" widget, the same window in the recent views layout
does not allow to create a new record (the green small button for creating a new record, which should be
by the window name, disappears).

The problem was in the "ob-utilities.js", inside the "{OB.Utilities.openView}" function, the logic for
setting the "singleRecord" value (this is the Edit Only attribute) was wrong. If the value of the
variable singleRecord of that function was undefined or null, as it was in the case of clicking the "quick create new"
widget, that value was set to true and the window became an "edit only" window.That was why the small
green "create new" icon disappeared from the recent views layout.

For fixing this the condition has been removed, so we know that the value of the variable "singleRecord" is not
going to be modified and it will be set correctly.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
---
(0073660)
AugustoMauch   
2015-01-20 19:02   
Code reviewed and verified in pi@e3b446f2e3b0
(0074167)
hudsonbot   
2015-02-04 20: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/f36c91d0ad63 [^]
Maturity status: Test