Openbravo Issue Tracking System - Modules
View Issue Details
0054038ModulesOpenbravo Business APIpublic2023-11-28 00:122023-11-30 07:28
dcontrera 
dcontrera 
normalmajorhave not tried
closedfixed 
5
 
 
0054038: [Product] API Product Category: Add Parents Organization feature
After few months working with OB, we found lots of new subfamily created in our PLM but not in OB.

In order to synchronized product categories between PLM & OB we want to use the existing API

POST​/org.openbravo.api.ImportService​/ProductCategory

The only missing point is we are not able by API to specify the parent in order to have the level hierarchy.

Is it possible to add a parent attribute to specify in which category we want to push the new one :
[
  {
    "client": "SMCP",
    "organization": "*",
    "searchKey": "F506010",
    "name": "F506010 - Small leather goods",
    "description": "",
    "summaryLevel": true,
    "active": true,
    "default": true,
    "plannedMargin": 0
    "parentCategory":"F5060" => NEW FIELD
  }
]
No tags attached.
has duplicate feature request 0050691 closed Triage Omni OMS Retail Modules add tree information to product category API 
Issue History
2023-11-28 00:12dcontreraNew Issue
2023-11-28 00:12dcontreraAssigned To => dcontrera
2023-11-28 03:47hgbotNote Added: 0157712
2023-11-30 07:28hgbotNote Added: 0157819
2023-11-30 07:28hgbotResolutionopen => fixed
2023-11-30 07:28hgbotStatusnew => closed
2023-11-30 07:28hgbotNote Added: 0157820
2023-11-30 07:28hgbotNote Added: 0157821
2023-12-05 12:03rafarodaRelationship addedhas duplicate 0050691

Notes
(0157712)
hgbot   
2023-11-28 03:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/216 [^]
(0157819)
hgbot   
2023-11-30 07:28   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/216 [^]
(0157820)
hgbot   
2023-11-30 07:28   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 24fb1cf0303dc124823fb45c8d272ac0103d30b5
Author: dante.contrera <dante.contrera@smfconsulting.es>
Date: 30-11-2023 06:09:16
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/24fb1cf0303dc124823fb45c8d272ac0103d30b5 [^]

Fixed ISSUE-54038: Parent Category property added in Product Category Entity.

---
A src/org/openbravo/api/hook/productcategory/ImportedProdCategoryBaseOBObjectAfterFlushHook.java
A src/org/openbravo/api/mappings/productcategory/ImportProductCategoryJavaPropertyMappingHandler.java
---
(0157821)
hgbot   
2023-11-30 07:28   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 10ebcde1be5cc00fc800eb5f227e2fe2d400a0a6
Author: Antonio Moreno <antonio.moreno@openbravo.com>
Date: 30-11-2023 07:27:58
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/10ebcde1be5cc00fc800eb5f227e2fe2d400a0a6 [^]

Related to ISSUE-54038: Added description for parentCategory property

---
M src/org/openbravo/api/mappings/productcategory/ImportProductCategoryJavaPropertyMappingHandler.java
---