Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018183Openbravo ERPA. Platformpublic2011-08-03 15:352011-09-02 10:30
shuehner 
marvintm 
normalminorhave not tried
closedfixed 
5
 
3.0MP33.0MP3 
Core
No
0018183: new ImageBLOB reference doesn't offer zoom when record is read-only.
The new ImageBLOB reference in 3.0 allows to zoom into an image by clicking on it (opens a popup).

However this does not work if the record is read-only. Then no zoom cursor is shown and no zoom on click happens.
Add an image column to the product window/tab/table (new column varchar(32), references ad_image, reference: 'image BLOB' add to product tab of product window.

Switch to F&B admin role
create a new product with organization '*'
Add an image in the new column to that record.
Switch role to 'F&B sales' role
open form view for the previously created record.
Notice that the image is shown in the form -> correct
However on mouse-over the field no zoom-cursor is shown.
Also on click no popup with the zoomed image is shown.
No tags attached.
Issue History
2011-08-03 15:35shuehnerNew Issue
2011-08-03 15:35shuehnerAssigned To => marvintm
2011-08-03 15:35shuehnerModules => Core
2011-08-30 09:30hgbotCheckin
2011-08-30 09:30hgbotNote Added: 0040549
2011-08-30 09:30hgbotStatusnew => resolved
2011-08-30 09:30hgbotResolutionopen => fixed
2011-08-30 09:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2301ecb7a7e26fba43cc60827bb49440dabda35a [^]
2011-08-30 19:38hudsonbotCheckin
2011-08-30 19:38hudsonbotNote Added: 0040569
2011-09-02 10:30mtaalNote Added: 0040704
2011-09-02 10:30mtaalStatusresolved => closed
2011-09-02 10:30mtaalFixed in Version => 3.0MP3

Notes
(0040549)
hgbot   
2011-08-30 09:30   
Repository: erp/devel/pi
Changeset: 2301ecb7a7e26fba43cc60827bb49440dabda35a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Aug 30 09:29:49 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2301ecb7a7e26fba43cc60827bb49440dabda35a [^]

Fixed issue 18183. Zooming in an image will work even in readonly windows. The following changes have been made:
- Moved the setting of the readonly property in the processFICresponse to _before_ the values for the columns have been set.
- The Image formitem will never be disabled. This is done to allow click() events to be triggered.
- Added updateState method to the selectorButton (the deleteButton already had it), and saved the selectorButton in the canvas object.
- In the setValue() method, added a call to the updateState method of both buttons so that it takes into account the readOnly property in the form and the one in the formitem.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0040569)
hudsonbot   
2011-08-30 19:38   
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/dfde2574ecaf [^]

Maturity status: Test
(0040704)
mtaal   
2011-09-02 10:30   
Nice!