Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058077Retail ModulesRetail APIpublic2025-02-21 15:582025-03-04 12:07
javietxe 
Sathishkumar 
normalmajorhave not tried
closedfixed 
5
 
RR25Q1 
merged
Gold
No
0058077: 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 => RR25Q1
2025-03-04 12:05hgbotNote Added: 0176415
2025-03-04 12:06hgbotMerge Request Statusopen => merged
2025-03-04 12:06hgbotNote Added: 0176416
2025-03-04 12:06hgbotResolutionopen => fixed
2025-03-04 12:06hgbotStatusscheduled => resolved
2025-03-04 12:06hgbotNote Added: 0176417
2025-03-04 12:07jonaeStatusresolved => closed

Notes
(0176415)
hgbot   
2025-03-04 12:05   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/merge_requests/438 [^]
(0176416)
hgbot   
2025-03-04 12:06   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/merge_requests/438 [^]
(0176417)
hgbot   
2025-03-04 12:06   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 395e31e0b5594ee2d0d774d233a3ce3a324e61d4
Author: Jon Alegría <j.alegria@external.orisha.com>
Date: 04-03-2025 11:06:48
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/commit/395e31e0b5594ee2d0d774d233a3ce3a324e61d4 [^]

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

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