Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0055021 | Openbravo ERP | 02. Master data management | public | 2024-03-20 20:57 | 2024-05-13 08:56 |
Reporter | sdossantos | ||||
Assigned To | gonzalo_fernandez | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | PR24Q3 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | OBPS | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | 92349 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0055021: Error with computed image column | ||||
Description | If I create a computed image column, an error is generated. When a modification is performed, the RemoveImagesEventHandler event is triggered and it tries to recover a property that does not exist in the database, returning an error. The problem is that the ModelProvider is uploading all the ADImage properties without taking into account whether they are computed or not. | ||||
Steps To Reproduce | 1- Create a computed column in c_orderline to see the product image. Example: (select m_product.ad_image_id from m_product where m_product.m_product_id = M_product_ID) Use it creating a field for the Sales Order window and opening it (you would see the error). | ||||
Proposed Solution | --- a/src/org/openbravo/base/model/ModelProvider.java 2022-03-01 14:20:59.000000000 +0100 +++ b/src/org/openbravo/base/model/ModelProvider.java 2024-03-20 11:53:19.183266000 +0100 @@ -338,8 +338,10 @@ if (p.getReferencedProperty() != null) { Entity referencedEntity = p.getReferencedProperty().getEntity(); if ("ADImage".equals(referencedEntity.getName())) { - entitiesWithImage.computeIfAbsent(p.getEntity(), k -> new ArrayList<>()) - .add(p.getName()); + if (!p.isComputedColumn()) { + entitiesWithImage.computeIfAbsent(p.getEntity(), k -> new ArrayList<>()) + .add(p.getName()); + } } else if ("OBPRF_FILE".equals(referencedEntity.getName())) { entitiesWithFile.computeIfAbsent(p.getEntity(), k -> new ArrayList<>()) .add(p.getName()); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2024-03-20 20:57 | sdossantos | New Issue | |||
2024-03-20 20:57 | sdossantos | Assigned To | => Triage Omni OMS | ||
2024-03-20 20:57 | sdossantos | OBNetwork customer | => OBPS | ||
2024-03-20 20:57 | sdossantos | Modules | => Core | ||
2024-03-20 20:57 | sdossantos | Support ticket | => 92349 | ||
2024-03-20 20:57 | sdossantos | Triggers an Emergency Pack | => No | ||
2024-03-20 21:03 | Practics | Issue Monitored: Practics | |||
2024-03-21 10:56 | aferraz | Assigned To | Triage Omni OMS => Triage Platform Base | ||
2024-04-10 09:15 | AugustoMauch | Note Added: 0163008 | |||
2024-04-10 09:15 | AugustoMauch | Status | new => feedback | ||
2024-04-24 09:58 | AugustoMauch | Assigned To | Triage Platform Base => gonzalo_fernandez | ||
2024-04-24 13:38 | hgbot | Merge Request Status | => open | ||
2024-04-24 13:38 | hgbot | Note Added: 0163658 | |||
2024-04-24 14:04 | gonzalo_fernandez | Status | feedback => scheduled | ||
2024-04-24 14:04 | gonzalo_fernandez | Summary | Error with computed image field => Error with computed image column | ||
2024-04-24 14:04 | gonzalo_fernandez | Description Updated | bug_revision_view_page.php?rev_id=27866#r27866 | ||
2024-04-24 14:04 | gonzalo_fernandez | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27868#r27868 | ||
2024-05-13 08:55 | hgbot | Merge Request Status | open => approved | ||
2024-05-13 08:56 | hgbot | Resolution | open => fixed | ||
2024-05-13 08:56 | hgbot | Status | scheduled => closed | ||
2024-05-13 08:56 | hgbot | Fixed in Version | => PR24Q3 | ||
2024-05-13 08:56 | hgbot | Note Added: 0164466 | |||
2024-05-13 08:56 | hgbot | Note Added: 0164467 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|