Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029863Openbravo ERPA. Platformpublic2015-05-13 13:092015-06-10 15:50
gorkaion 
NaroaIriarte 
immediatemajoralways
closedfixed 
20Gentoo
pi 
3.0PR15Q33.0PR15Q3 
alostale
Core
No
0029863: Multiple Selection Process Definition buttons with reference list shows wrong text
Having a button related to a Process Definition that allows multiple selection. This button has also a list to change the Text based on its value.

When more than one record is selected the text shown is based on the last record loaded in the client. This has the following issues:

1. Open a window in grid mode and click the select all records button. The text shown is the Default name of the process. Unselect some records until all the selected have the same value, the text keeps being the default. Continue unselecting until only one is selected. The text keeps being the default.

2. Open a window and select one record. Check that the text of the button is updated. Now select more records of different statuses. The text does not change. Now unselect until one record of a different status is selected. The text does not change.

Case 1:
0 Log in with Openbravo Admin role in an instance with the F&B client.
1 Open the "Fiscal Calendar" window and select "Calendario EspaƱa".
2 Create a new "Fiscal Year" for year 2016.
3 Click on "Create Periods" and create all the periods.
4 Go to "Open/Close Period Control window."
5 Click on select all records
6 Check that the button has "Open close"
7 Unselect all the periods in "All never opened" status.
8 The button keeps "Open close" but it should be "Close Period"

-----

Case 2:
1 Go to "Open/Close Period Control window."
2 Select two periods in "All Opened" status.
3 Check that the button has "Close Period". OK
4 Select two more records in "All never opened".
5 Check that the button keeps in "Close Period" but it should be "Open Close"


When records are selected it should be checked their value.

If there are records with different values the text should be the "Name" of the button field.
If all the selected records have the same value the text should be the one related to the value.

This check should be done every time the selection of the grid is changed.
No tags attached.
has duplicate defect 00298653.0PR15Q3 closed NaroaIriarte Multiple Selection Process Definition buttons with children tabs with reference list shows wrong text 
related to defect 00298673.0PR15Q3 closed dbaz Grid multiple selection is lost on refresh 
Issue History
2015-05-13 13:09gorkaionNew Issue
2015-05-13 13:09gorkaionAssigned To => platform
2015-05-13 13:09gorkaionModules => Core
2015-05-13 13:09gorkaionTriggers an Emergency Pack => No
2015-05-13 13:28gorkaionIssue cloned0029865
2015-05-13 13:28gorkaionRelationship addedrelated to 0029865
2015-05-13 13:52gorkaionRelationship addedrelated to 0029867
2015-05-13 16:42jonalegriaesarteResolution time => 1434751200
2015-05-13 16:42jonalegriaesarteTarget Version => 3.0PR15Q3
2015-05-13 18:25gorkaionPrioritynormal => immediate
2015-05-15 12:30alostaleStatusnew => acknowledged
2015-05-27 15:48alostaleStatusacknowledged => scheduled
2015-05-27 15:48alostaleAssigned Toplatform => inigosanchez
2015-06-02 14:51NaroaIriarteAssigned Toinigosanchez => NaroaIriarte
2015-06-03 16:27NaroaIriarteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8739#r8739
2015-06-04 10:21NaroaIriarteIssue Monitored: alostale
2015-06-04 10:21NaroaIriarteReview Assigned To => alostale
2015-06-04 16:55hgbotCheckin
2015-06-04 16:55hgbotNote Added: 0078086
2015-06-04 16:55hgbotStatusscheduled => resolved
2015-06-04 16:55hgbotResolutionopen => fixed
2015-06-04 16:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/672ff4b32ead2412881ddc6ed4d5dfdddcf37d14 [^]
2015-06-05 09:54NaroaIriarteRelationship replacedhas duplicate 0029865
2015-06-06 16:53hudsonbotCheckin
2015-06-06 16:53hudsonbotNote Added: 0078124
2015-06-10 15:50alostaleNote Added: 0078183
2015-06-10 15:50alostaleStatusresolved => closed
2015-06-10 15:50alostaleFixed in Version => 3.0PR15Q3

Notes
(0078086)
hgbot   
2015-06-04 16:55   
Repository: erp/devel/pi
Changeset: 672ff4b32ead2412881ddc6ed4d5dfdddcf37d14
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Thu Jun 04 16:53:27 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/672ff4b32ead2412881ddc6ed4d5dfdddcf37d14 [^]

Fixed issue 29863: Title of process buttons are not showing the correct text.

When a process button allows multiple selection, the text shown in the button was not correct.

The problem was that the code for handling the change of the text inside a process button, that allows multiple selection,
didn't exist before.
To fix this the code needed to deal with the change of the name of the button for multiple selection has been created.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
---
(0078124)
hudsonbot   
2015-06-06 16:53   
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/7419f65cdeb3 [^]
Maturity status: Test
(0078183)
alostale   
2015-06-10 15:50   
code reviewed

tested as defined in steps to reproduce + refreshing with single/multiple selection