Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048780 | Retail Modules | Retail API | public | 2022-03-14 13:05 | 2022-03-18 11:36 |
|
Reporter | jose_duque | |
Assigned To | caristu | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | Ubuntu 18.04.1 LTS |
Product Version | | |
Target Version | | Fixed in Version | RR22Q2 | |
Merge Request Status | approved |
Review Assigned To | marvintm |
OBNetwork customer | OBPS |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0048780: It is not possible to create or modify a product if there exist 2 product categories with the same searchkey |
Description | 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.
|
Steps To Reproduce | 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. |
Proposed Solution | When doing the checks to create the entity, check the organization and searchkey of the category instead of only the searchkey. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0051547 | pi | closed | caristu | PriceList API - Product price is wrongly added when same products searchKey on different Orgs are in OB backoffice |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-03-14 13:05 | jose_duque | New Issue | |
2022-03-14 13:05 | jose_duque | Assigned To | => caristu |
2022-03-14 13:05 | jose_duque | OBNetwork customer | => OBPS |
2022-03-14 13:05 | jose_duque | Triggers an Emergency Pack | => No |
2022-03-14 13:05 | jose_duque | Issue generated from | 0048492 |
2022-03-14 13:57 | martinsdan | Issue Monitored: martinsdan | |
2022-03-15 12:25 | adrianromero | Assigned To | caristu => Retail |
2022-03-17 11:34 | hgbot | Merge Request Status | => open |
2022-03-17 11:34 | hgbot | Note Added: 0135793 | |
2022-03-18 07:56 | hgbot | Merge Request Status | open => approved |
2022-03-18 07:56 | hgbot | Note Added: 0135830 | |
2022-03-18 07:56 | hgbot | Note Added: 0135831 | |
2022-03-18 07:56 | marvintm | Status | new => scheduled |
2022-03-18 07:56 | marvintm | Assigned To | Retail => prakashmurugesan88 |
2022-03-18 07:57 | marvintm | Note Added: 0135832 | |
2022-03-18 07:57 | marvintm | Status | scheduled => resolved |
2022-03-18 07:57 | marvintm | Fixed in Version | => RR22Q2 |
2022-03-18 07:57 | marvintm | Resolution | open => fixed |
2022-03-18 07:57 | marvintm | Review Assigned To | => marvintm |
2022-03-18 07:57 | marvintm | Status | resolved => closed |
2022-03-18 11:35 | hgbot | Note Added: 0135841 | |
2022-03-18 11:35 | caristu | Assigned To | prakashmurugesan88 => caristu |
2022-03-18 11:36 | caristu | Note Added: 0135843 | |
2023-02-09 11:00 | alostale | Relationship added | related to 0051547 |
Notes |
|
(0135793)
|
hgbot
|
2022-03-17 11:34
|
|
|
|
(0135830)
|
hgbot
|
2022-03-18 07:56
|
|
|
|
(0135831)
|
hgbot
|
2022-03-18 07:56
|
|
|
|
|
|
|
(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
---
|
|
|
|
|