Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058054Retail ModulesRetail APIpublic2025-02-21 15:582025-03-04 11:47
javietxe 
Sathishkumar 
normalmajorhave not tried
closedfixed 
5
 
 
merged
Gold
No
0058054: 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.
related to defect 0056980 closed jgalarza API Product - Error when updating a related product 
depends on backport 0058077RR25Q1 closed Sathishkumar Import Product: relation of related product inversed 
depends on backport 0058078RR24Q4.2 closed Sathishkumar Import Product: relation of related product inversed 
Issue History
2025-02-21 15:58javietxeNew Issue
2025-02-21 15:58javietxeAssigned To => Retail
2025-02-21 15:58javietxeOBNetwork customer => Gold
2025-02-21 15:58javietxeTriggers an Emergency Pack => No
2025-02-24 17:13aaroncaleroRelationship addedrelated to 0056980
2025-02-24 17:13aaroncaleroNote Added: 0176090
2025-02-24 17:13aaroncaleroAssigned ToRetail => Triage Omni OMS
2025-02-26 07:28jonaeNote Added: 0176133
2025-02-26 07:28jonaeAssigned ToTriage Omni OMS => Sathishkumar
2025-02-26 10:41hgbotMerge Request Status => open
2025-02-26 10:41hgbotNote Added: 0176141
2025-02-26 10:59jonaeStatusnew => scheduled
2025-03-04 11:46hgbotResolutionopen => fixed
2025-03-04 11:46hgbotStatusscheduled => resolved
2025-03-04 11:46hgbotNote Added: 0176412
2025-03-04 11:46hgbotMerge Request Statusopen => merged
2025-03-04 11:46hgbotNote Added: 0176413
2025-03-04 11:47jonaeStatusresolved => closed

Notes
(0176090)
aaroncalero   
2025-02-24 17:13   
Reassigning to Omni team as it might be a regression caused by 0056980
(0176133)
jonae   
2025-02-26 07:28   
Jira - https://openbravo.atlassian.net/browse/RM-21579 [^]
(0176141)
hgbot   
2025-02-26 10:41   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/merge_requests/436 [^]
(0176412)
hgbot   
2025-03-04 11:46   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api [^]
Changeset: cd8e63ff8b6aa366ddc006cb781a5250ecf6ec48
Author: Sathishkumar Palanisamy <sa.palanisamy@external.orisha.com>
Date: 04-03-2025 10:46:31
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/commit/cd8e63ff8b6aa366ddc006cb781a5250ecf6ec48 [^]

Fixes ISSUE-58054: Fixed relation of related product inversed during import product

---
M src/org/openbravo/api/mappings/product/ImportProductJavaPropertyMappingHandler.java
---
(0176413)
hgbot   
2025-03-04 11:46   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/merge_requests/436 [^]