Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032247Openbravo ERPA. Platformpublic2016-02-15 18:522016-02-26 09:18
vmromanos 
inigosanchez 
immediatemajorsometimes
closedfixed 
5
 
3.0PR16Q13.0PR16Q1 
alostale
Core
Packaging and release
No
0032247: Read only logic doesn't work on some columns in grid view
The read only doesn't apply properly when a display logic or read only logic are applied in grid view. It is not take into account read only value.

This is a regression that affects Main and PI (Introduced by Grid Display Logic as Read Only project)
As Openbravo Admin go to Financial Account window
Select "Cuenta de Banco" and go to Transaction tab in grid mode
Clear the filters so the grid shows all the records.
Edit any processed record.
Verify Currency and Status columns can be edited. However these fields are set as Read Only in the Application Dictionary.
Open this record in form view and verify the Currency field is properly set as read only
No tags attached.
blocks defect 0032240 closed inigosanchez Read only logic doesn't work on some columns in grid view 
Issue History
2016-02-16 15:04alostaleTypedefect => backport
2016-02-16 15:04alostaleTarget Version => 3.0PR16Q1
2016-02-25 00:41inigosanchezAssigned Toplatform => inigosanchez
2016-02-25 00:41inigosanchezDescription Updatedbug_revision_view_page.php?rev_id=11222#r11222
2016-02-25 00:47inigosanchezReview Assigned To => alostale
2016-02-25 00:48hgbotCheckin
2016-02-25 00:48hgbotNote Added: 0084479
2016-02-25 00:48hgbotStatusscheduled => resolved
2016-02-25 00:48hgbotResolutionopen => fixed
2016-02-25 00:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/e91d7a38fa6bbec99badef48ebf57740c6aee801 [^]
2016-02-26 09:18alostaleNote Added: 0084542
2016-02-26 09:18alostaleStatusresolved => closed
2016-02-26 09:18alostaleFixed in Version => 3.0PR16Q1

Notes
(0084479)
hgbot   
2016-02-25 00:48   
Repository: erp/backports/3.0PR16Q1
Changeset: e91d7a38fa6bbec99badef48ebf57740c6aee801
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Thu Feb 25 00:33:12 2016 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/e91d7a38fa6bbec99badef48ebf57740c6aee801 [^]

Fixes issue 32247: Read only doesn't work on some columns in grid view

The problem is caused because it was not take into account read only when other
logic (e.g. display logic) was being applied in an editing grid view.

In order to prevent this, it take into account when a field is checks as read
only. In this case, the field is show properly.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-form.js.ftl
---
(0084542)
alostale   
2016-02-26 09:18   
code reviewed

tested:
- in grid view editing an existing record
- in grid view creating a new record
- in form view editing an existing record
- in form view creating a new record