Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034893Openbravo ERPA. Platformpublic2017-01-09 11:022017-01-13 12:57
Production - Confirmed Stable
3.0PR16Q2 [^]
0034893: Ordering in GL Item grid in Add Payment process definition does not work. It deletes the lines.
Ordering in GL Item grid in Add Payment process definition does not work. It deletes the lines.
In live builds:
 * Go to "Payment In" window.
 * Create a new record.
 * Click on "Add Details" button.
 * In GL Items section click on "Add New".
 * Add a GL Item and save the record.
 * Sort by GL Item.
 * The previous record disappears.
No tags attached.
blocks defect 0034864 closed NaroaIriarte Ordering in GL Item grid in Add Payment process definition does not work. It deletes the lines. 
Issue History
2017-01-10 12:56NaroaIriarteTypedefect => backport
2017-01-10 12:56NaroaIriarteTarget Version => 3.0PR16Q3.4
2017-01-11 16:05hgbotCheckin
2017-01-11 16:05hgbotNote Added: 0093363
2017-01-11 16:05hgbotStatusscheduled => resolved
2017-01-11 16:05hgbotResolutionopen => fixed
2017-01-11 16:05hgbotFixed in SCM revision => [^]
2017-01-13 12:57alostaleNote Added: 0093522
2017-01-13 12:57alostaleStatusresolved => closed
2017-01-13 12:57alostaleFixed in Version => 3.0PR16Q3.4

2017-01-11 16:05   
Repository: erp/backports/3.0PR16Q3.4
Changeset: f43dcd2fc7a5a7460b37afc85efedc552e2be169
Author: Naroa Iriarte <naroa.iriarte <at>>
Date: Wed Jan 11 15:27:22 2017 +0100
URL: [^]

Fixed issue 34893: The GL item section of add payment was not working fine

The grid of the G/L item section of the Add payment process was not workinf fine. The problem was that it was shown as sortable and as filterable and it must not be filterable nor sortable. This has been caused by the changeset[1]. This proyect set every column as sortable and as filterable and so was the problem.
To fix this the values of "canSort" and "canFilter" have been changed in the needed cases, which are the ones that satisfy the condition of having the canDelete property or the canAdd property set to yes and are in Pick and Execute window.
The code which handles the logic has been moved from the OBViewFieldHandler.getGridFieldProperties() to UIDefinition.getGridFieldProperties().

[1] [^]

M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/
2017-01-13 12:57   
code reviewed

- It's not possible to filter nor sort in P&E grids that allow adding or removing records
- The rest of grids continue allowing filtering sorting by default
- It's possible to overwrite this behavior through grid configuration