Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058078Retail ModulesRetail APIpublic2025-02-21 15:582025-03-04 12:32
javietxe 
Sathishkumar 
normalmajorhave not tried
closedfixed 
5
 
RR24Q4.2 
merged
Gold
No
0058078: Import Product: relation of related product inversed
Via API: When a service or contribution is integrated and related products are defined, the relationship is inverted so the service/contribution is set as the related product of the Item.
In livebuilds:

- GO to backoffice-> Product
- Modify the "Basecamp lantern with legs" product setting:
   + Product Type: Contribution
   + Product Subtype: DEEE Eco-contribution
   + Relatable Product-> Included products-> "Only those defined"
- Integrate via API the next JSON:

[{"client":"The White Valley Group","organization":"CTS","searchKey":"Basecamp lantern with legs","name":"Basecamp lantern with legs","uom":"Unit","productCategory":"Lighting","taxCategory":"IVA Normal","relatedProducts":[{"product":"Battery charger","multiplicator":1,"active":true}]}]

- Check that for "Basecamp lantern with legs" in the tab "Related Products" is empty.
- Check in the database that the relationship (m_product_service) is created with "Basecamp lantern with legs" as related product of the "Battery charger" (in the backoffice the tab is not shown for items)
 
No tags attached.
blocks defect 0058054 closed Sathishkumar Import Product: relation of related product inversed 
Issue History
2025-02-26 10:59jonaeTypedefect => backport
2025-02-26 10:59jonaeTarget Version => RR24Q4.2
2025-03-04 12:31hgbotNote Added: 0176420
2025-03-04 12:32hgbotMerge Request Statusopen => merged
2025-03-04 12:32hgbotNote Added: 0176421
2025-03-04 12:32hgbotResolutionopen => fixed
2025-03-04 12:32hgbotStatusscheduled => resolved
2025-03-04 12:32hgbotNote Added: 0176422
2025-03-04 12:32jonaeStatusresolved => closed

Notes
(0176420)
hgbot   
2025-03-04 12:31   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/merge_requests/439 [^]
(0176421)
hgbot   
2025-03-04 12:32   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/merge_requests/439 [^]
(0176422)
hgbot   
2025-03-04 12:32   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api [^]
Changeset: be2108cdde0e63f0aef6ad6c5900cd17376a18dc
Author: Jon Alegria <j.alegria@external.orisha.com>
Date: 04-03-2025 12:30:25
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/commit/be2108cdde0e63f0aef6ad6c5900cd17376a18dc [^]

Fixes ISSUE-58078: Import Product: relation of related product inversed

---
M src/org/openbravo/api/mappings/product/ImportProductJavaPropertyMappingHandler.java
---