Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018530Openbravo ERP00. Application dictionarypublic2011-09-15 09:492012-03-02 15:38
egoitz 
marvintm 
highminoralways
closedfixed 
5
3.0MP2.2 
3.0MP93.0MP9 
Core
No
0018530: The image field on product window has an incorrect reference.
The product table as an image column (ad_image_id) using image reference when in Openbravo3 the proper reference is imageblob.
Check the definition on the application dictionary of ad_image_Id column on m_product table
-Change the reference from image to imageblob
-PUt the fields visible and located on the proper position
-Add a tool on the migration tool to move images from old reference to the new one.
No tags attached.
related to defect 0018496 closed adrianromero Modules The job to synchronize products does not allow imageblob reference 
related to defect 0050919 closed shuehner Openbravo ERP Remove obsolete reference for ImageInfo (url-based) it was replaced by ImageInfoBLOB 
diff convertimages.diff (4,613) 2011-12-21 11:26
https://issues.openbravo.com/file_download.php?file_id=4843&type=bug
Issue History
2011-09-15 09:49egoitzNew Issue
2011-09-15 09:49egoitzAssigned To => marvintm
2011-09-15 09:49egoitzModules => Core
2011-09-15 09:49egoitzRelationship addedrelated to 0018496
2011-09-26 17:53marvintmTarget Version3.0MP4 => 3.0MP5
2011-10-26 17:35marvintmTarget Version3.0MP5 => 3.0MP6
2011-11-22 17:38marvintmTarget Version3.0MP6 => 3.0MP7
2011-12-21 11:26marvintmFile Added: convertimages.diff
2011-12-21 11:27marvintmTarget Version3.0MP7 => 3.0MP8
2012-01-17 10:02marvintmTarget Version3.0MP8 => 3.0MP9
2012-02-06 10:22hgbotCheckin
2012-02-06 10:22hgbotNote Added: 0044881
2012-02-06 10:22hgbotStatusnew => resolved
2012-02-06 10:22hgbotResolutionopen => fixed
2012-02-06 10:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ce1acb5ef9dd40d7bcf47735023f9208193f1c5d [^]
2012-02-09 16:22marvintmNote Added: 0044969
2012-02-10 16:03hgbotCheckin
2012-02-10 16:03hgbotNote Added: 0045010
2012-02-10 16:43hgbotCheckin
2012-02-10 16:43hgbotNote Added: 0045015
2012-02-14 18:25dbazNote Added: 0045128
2012-02-14 18:25dbazStatusresolved => new
2012-02-14 18:25dbazResolutionfixed => open
2012-02-14 18:32hgbotCheckin
2012-02-14 18:32hgbotNote Added: 0045129
2012-02-14 18:32hgbotStatusnew => resolved
2012-02-14 18:32hgbotResolutionopen => fixed
2012-02-14 18:32hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/ce1acb5ef9dd40d7bcf47735023f9208193f1c5d [^] => http://code.openbravo.com/erp/devel/pi/rev/e319ba9996d63c774cb3689a0f8d6a6548ba9986 [^]
2012-02-14 18:59dbazNote Added: 0045131
2012-02-14 18:59dbazStatusresolved => new
2012-02-14 18:59dbazResolutionfixed => open
2012-02-16 12:12hgbotCheckin
2012-02-16 12:12hgbotNote Added: 0045185
2012-02-16 12:12hgbotStatusnew => resolved
2012-02-16 12:12hgbotResolutionopen => fixed
2012-02-16 12:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/e319ba9996d63c774cb3689a0f8d6a6548ba9986 [^] => http://code.openbravo.com/erp/devel/pi/rev/eb48f353d1d3ee2df696d828b9cf0553d672446f [^]
2012-02-16 20:04dmitry_mezentsevNote Added: 0045204
2012-02-17 10:15marvintmNote Added: 0045222
2012-02-18 22:16dbazNote Added: 0045253
2012-02-18 22:16dbazStatusresolved => closed
2012-02-18 22:16dbazFixed in Version => 3.0MP9
2012-02-18 23:21dbazStatusclosed => new
2012-02-18 23:21dbazResolutionfixed => open
2012-02-18 23:21dbazFixed in Version3.0MP9 =>
2012-02-18 23:23dbazNote Edited: 0045253bug_revision_view_page.php?bugnote_id=0045253#r3186
2012-02-20 11:10hgbotCheckin
2012-02-20 11:10hgbotNote Added: 0045264
2012-02-20 11:10hgbotStatusnew => resolved
2012-02-20 11:10hgbotResolutionopen => fixed
2012-02-20 11:10hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/eb48f353d1d3ee2df696d828b9cf0553d672446f [^] => http://code.openbravo.com/erp/devel/pi/rev/6549cff0fa4b7023d030feef32a293907c9a36c7 [^]
2012-02-20 20:49dbazNote Added: 0045291
2012-02-20 20:49dbazStatusresolved => closed
2012-02-20 20:49dbazFixed in Version => 3.0MP9
2012-03-02 15:34hudsonbotCheckin
2012-03-02 15:34hudsonbotNote Added: 0045759
2012-03-02 15:35hudsonbotCheckin
2012-03-02 15:35hudsonbotNote Added: 0045797
2012-03-02 15:35hudsonbotCheckin
2012-03-02 15:35hudsonbotNote Added: 0045801
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045850
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045868
2012-03-02 15:38hudsonbotCheckin
2012-03-02 15:38hudsonbotNote Added: 0045892
2022-11-23 08:42alostaleRelationship addedrelated to 0050919

Notes
(0044881)
hgbot   
2012-02-06 10:22   
Repository: erp/devel/pi
Changeset: ce1acb5ef9dd40d7bcf47735023f9208193f1c5d
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Feb 06 09:58:07 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ce1acb5ef9dd40d7bcf47735023f9208193f1c5d [^]

Fixed issue 18530. Changed reference of the product image. Added modulescript to convert images.

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
A src-util/modulescript/build/classes/org/openbravo/modulescript/ConvertImages.class
A src-util/modulescript/src/org/openbravo/modulescript/ConvertImages.java
---
(0044969)
marvintm   
2012-02-09 16:22   
Test plan:

Two things need to be tested:
- Verify that the image in the product window works correctly, and that images can be uploaded to products without problems.
- Verify that the modulescript works: for this, define via database access some images (in the old way, by creating a record in ad_image, specifying a valid URL, and manually moving the image files to the folder inside Tomcat). After this, run ant update.database and verify that the modulescript correctly imports the image data into the database, and that the images are shown in the product window.
(0045010)
hgbot   
2012-02-10 16:03   
Repository: erp/devel/pi
Changeset: 3cd3c4f08a8f0dc4325ca38986fc84f3d46bde17
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Feb 10 16:01:00 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3cd3c4f08a8f0dc4325ca38986fc84f3d46bde17 [^]

Related to issue 18530. Modulescript will now log error messages. Use CATALINA_HOME if there is no CATALINA_BASE. Removed wrong import.

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/ConvertImages.class
M src-util/modulescript/src/org/openbravo/modulescript/ConvertImages.java
---
(0045015)
hgbot   
2012-02-10 16:43   
Repository: erp/devel/pi
Changeset: bb8f1d8ffd6727db0712b8a4177d77012532fcaf
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Feb 10 16:41:45 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bb8f1d8ffd6727db0712b8a4177d77012532fcaf [^]

Related to issue 18530. Improved error message.

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/ConvertImages.class
M src-util/modulescript/src/org/openbravo/modulescript/ConvertImages.java
---
(0045128)
dbaz   
2012-02-14 18:25   
No image field is shown in "Product" window @ changeset 15475 - 215fbb471eaa
(0045129)
hgbot   
2012-02-14 18:32   
Repository: erp/devel/pi
Changeset: e319ba9996d63c774cb3689a0f8d6a6548ba9986
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Feb 14 18:31:45 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e319ba9996d63c774cb3689a0f8d6a6548ba9986 [^]

Fixed issue 18530. Mark image field as displayed

---
M modules/org.openbravo.v3/src-db/database/configScript.xml
---
(0045131)
dbaz   
2012-02-14 18:59   
Code-review: mimetype column should be filled too in the modulescript to avoid problems and consolidate all the images in the AD in the same way.
(0045185)
hgbot   
2012-02-16 12:12   
Repository: erp/devel/pi
Changeset: eb48f353d1d3ee2df696d828b9cf0553d672446f
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Feb 16 10:46:50 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/eb48f353d1d3ee2df696d828b9cf0553d672446f [^]

Fixed issue 18530. Mime type will be computed for the converted images

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/ConvertImages.class
M src-util/modulescript/src/org/openbravo/modulescript/ConvertImages.java
---
(0045204)
dmitry_mezentsev   
2012-02-16 20:04   
Hey Guys,

Questions.
Why is this product field located in this place?
Why did it move Production and Process Plan?
Do you like new layout?
(0045222)
marvintm   
2012-02-17 10:15   
Hi,

I put it there because I didn't want to put it in the upper-left corner (as that would imply moving all the fields, including the organization field which in our standard is always the first field). I thought that in the current place it didn't look bad.

However, I'm certainly open to any suggestions. Styling is not my forte :)
(0045253)
dbaz   
2012-02-18 22:16   
(edited on: 2012-02-18 23:23)
The AD_IMAGE column "name" value should be changed to "Image" too in order to be coherent with the other existing fields.

This could help future developments, such as define a new name "ImageURL" or whatever to distinguish the type of the image.

(0045264)
hgbot   
2012-02-20 11:10   
Repository: erp/devel/pi
Changeset: 6549cff0fa4b7023d030feef32a293907c9a36c7
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Feb 20 11:09:18 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6549cff0fa4b7023d030feef32a293907c9a36c7 [^]

Fixed issue 18530. Set the name of the image.

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/ConvertImages.class
M src-util/modulescript/src/org/openbravo/modulescript/ConvertImages.java
---
(0045291)
dbaz   
2012-02-20 20:49   
Reviewed @ changeset 15549 - 2318a06cc636
(0045759)
hudsonbot   
2012-03-02 15: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/544d64e0c159 [^]

Maturity status: Test
(0045797)
hudsonbot   
2012-03-02 15:35   
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/544d64e0c159 [^]

Maturity status: Test
(0045801)
hudsonbot   
2012-03-02 15:35   
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/544d64e0c159 [^]

Maturity status: Test
(0045850)
hudsonbot   
2012-03-02 15:37   
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/544d64e0c159 [^]

Maturity status: Test
(0045868)
hudsonbot   
2012-03-02 15:37   
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/544d64e0c159 [^]

Maturity status: Test
(0045892)
hudsonbot   
2012-03-02 15: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/544d64e0c159 [^]

Maturity status: Test