Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048780Retail ModulesRetail APIpublic2022-03-14 13:052022-03-18 11:36
jose_duque 
caristu 
normalmajoralways
closedfixed 
30Ubuntu 18.04.1 LTS
 
RR22Q2 
marvintm
No
0048780: It is not possible to create or modify a product if there exist 2 product categories with the same searchkey
When trying to import a Product, if the product category exists in two different organizations for this searchkey we won't be able to import/create/modify.
Try to import a product that has a product category that exists in two organizations. This category has the same search key in both organizations.
When doing the checks to create the entity, check the organization and searchkey of the category instead of only the searchkey.
No tags attached.
related to defect 0051547pi closed caristu PriceList API - Product price is wrongly added when same products searchKey on different Orgs are in OB backoffice 
Issue History
2022-03-14 13:05jose_duqueNew Issue
2022-03-14 13:05jose_duqueAssigned To => caristu
2022-03-14 13:05jose_duqueTriggers an Emergency Pack => No
2022-03-14 13:05jose_duqueIssue generated from0048492
2022-03-14 13:57martinsdanIssue Monitored: martinsdan
2022-03-15 12:25adrianromeroAssigned Tocaristu => Retail
2022-03-17 11:34hgbotNote Added: 0135793
2022-03-18 07:56hgbotNote Added: 0135830
2022-03-18 07:56hgbotNote Added: 0135831
2022-03-18 07:56marvintmStatusnew => scheduled
2022-03-18 07:56marvintmAssigned ToRetail => prakashmurugesan88
2022-03-18 07:57marvintmNote Added: 0135832
2022-03-18 07:57marvintmStatusscheduled => resolved
2022-03-18 07:57marvintmFixed in Version => RR22Q2
2022-03-18 07:57marvintmResolutionopen => fixed
2022-03-18 07:57marvintmReview Assigned To => marvintm
2022-03-18 07:57marvintmStatusresolved => closed
2022-03-18 11:35hgbotNote Added: 0135841
2022-03-18 11:35caristuAssigned Toprakashmurugesan88 => caristu
2022-03-18 11:36caristuNote Added: 0135843
2023-02-09 11:00alostaleRelationship addedrelated to 0051547

Notes
(0135793)
hgbot   
2022-03-17 11:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/13 [^]
(0135830)
hgbot   
2022-03-18 07:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/13 [^]
(0135831)
hgbot   
2022-03-18 07:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: e039adc0a27adbcb5b467b28dd69e1ede880ee0c
Author: Prakash M <prakash@qualiantech.com>
Date: 18-03-2022 11:16:19
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/e039adc0a27adbcb5b467b28dd69e1ede880ee0c [^]

Related To ISSUE-48780: Changed organization property sequence number lower than any of the referenced properties
This is necessary for organization tree validation in referenced enitities

---
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
---
(0135832)
marvintm   
2022-03-18 07:57   
This issue will be fixed by the fix of the following issue: https://issues.openbravo.com/view.php?id=48096 [^]
combined with the changeset we already committed.
(0135841)
hgbot   
2022-03-18 11:35   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration [^]
Changeset: d73d080cc8e902b114c8c4b7b66d99f19c51044c
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 18-03-2022 11:34:48
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/commit/d73d080cc8e902b114c8c4b7b66d99f19c51044c [^]

fixes BUG-48780: add org natural tree criteria when looking for referenced entities

  Take into account the natural tree criteria when looking for
referenced entities when it applies. Together with this, now when
importing the organization mapping (if any) is applied first so we can
always use the org id when looking for referenced entities.

  Finally, a related improvement has been done: now when
importing we initialize the children with the same organization as their
parent. Note that this value can be overriden later if there is a
mapping in the children for the organization property.

  Note that without this change child objects were being created with the
current context organization by default which can lead to incorrect
definitions when the parent is imported witha different organization
from the current context one.

---
M src/org/openbravo/service/external/integration/importer/DalSynchronizableBusinessObjectImporter.java
M src/org/openbravo/service/external/integration/mapping/DirectPropertyMapping.java
M src/org/openbravo/service/external/integration/mapping/PropertyMapper.java
---
(0135843)
caristu   
2022-03-18 11:36   
MR: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration/-/merge_requests/9 [^]