Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0049332Openbravo ERP04. Warehouse managementpublic2022-05-16 14:112022-05-17 13:49
vmromanos 
vmromanos 
normalminorhave not tried
closedfixed 
5
 
 
Core
No
0049332: Remove attributesetinstance_info when id = '0'
When a stock doesn't have associatted an attributesetinstance, the json returns this useless information:

"attributeSetInstance_info": {
                "id": "0"
},
In Postman use the Stock Filter by Warehouse example.

See this is exported and adds no value:

"attributeSetInstance_info": {
                "id": "0"
},
Removed attributeSetInstance_info when id = '0'
No tags attached.
related to feature request 0049164 closed Triage Omni WMS Openbravo ERP Openbravo API to export current Stock 
depends on feature request 0049321 closed caristu Modules Support custom changes on exported SBO objects 
Issue History
2022-05-16 14:11vmromanosNew Issue
2022-05-16 14:11vmromanosAssigned To => Triage Omni WMS
2022-05-16 14:11vmromanosModules => Core
2022-05-16 14:11vmromanosTriggers an Emergency Pack => No
2022-05-16 14:11vmromanosIssue generated from0049164
2022-05-16 14:11vmromanosRelationship addedrelated to 0049164
2022-05-16 14:12vmromanosRelationship addeddepends on 0049321
2022-05-16 14:49hgbotNote Added: 0137329
2022-05-16 14:53hgbotNote Added: 0137330
2022-05-16 16:03vmromanosStatusnew => scheduled
2022-05-16 16:03vmromanosAssigned ToTriage Omni WMS => vmromanos
2022-05-17 13:21hgbotNote Added: 0137378
2022-05-17 13:21hgbotResolutionopen => fixed
2022-05-17 13:21hgbotStatusscheduled => closed
2022-05-17 13:21hgbotNote Added: 0137379
2022-05-17 13:21hgbotNote Added: 0137380
2022-05-17 13:21hgbotNote Added: 0137381
2022-05-17 13:49hgbotNote Added: 0137384

Notes
(0137329)
hgbot   
2022-05-16 14:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/42 [^]
(0137330)
hgbot   
2022-05-16 14:53   
Merge Request created: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests/-/merge_requests/14 [^]
(0137378)
hgbot   
2022-05-17 13:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/42 [^]
(0137379)
hgbot   
2022-05-17 13:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: da40a5e653cf2158acbe6615a3069e0bda569fe3
Author: Víctor Martínez Romanos <victor.martinez@openbravo.com>
Date: 17-05-2022 11:20:42
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/da40a5e653cf2158acbe6615a3069e0bda569fe3 [^]

Fixed ISSUE-49332: Add SBOPostCreationHook to remove attributesetinstance_info

It will be removed only when attributesetinstance is null, which covers the
stock with a dummy attributesetinstance id = 0

---
A src/org/openbravo/api/hook/stock/StockExportSBOPostCreationHook.java
---
(0137380)
hgbot   
2022-05-17 13:21   
Repository: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests [^]
Changeset: 8f9ec3b1c6d1e93198746384f8d65e4e89dd3f0e
Author: Víctor Martínez Romanos <victor.martinez@openbravo.com>
Date: 16-05-2022 14:50:58
URL: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests/-/commit/8f9ec3b1c6d1e93198746384f8d65e4e89dd3f0e [^]

Related to ISSUE-49332: Adapted JSON test files

Removed:

"attributeSetInstance_info": {
   "id": "0"
},

---
M src-test/data/export/filter/stock/StockByProduct.json
M src-test/data/export/filter/stock/StockByWarehouse.json
M src-test/data/export/filter/stock/StockByWarehouseBin.json
M src-test/data/export/filter/stock/StockByWarehouseBinProduct.json
---
(0137381)
hgbot   
2022-05-17 13:21   
Merge request merged: https://gitlab.com/openbravo/ci/modules/org.openbravo.api.tests/-/merge_requests/14 [^]
(0137384)
hgbot   
2022-05-17 13:49   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 838b4fd2f2a7411ee3ecde5709227d8512b04573
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 17-05-2022 13:47:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/838b4fd2f2a7411ee3ecde5709227d8512b04573 [^]

related to ISSUE-49332: increase dependency with External Integration Infrastructure

  Increase dependency with the version of the External Integration
Infrastructure that introduces the SBOPostCreationHook feature.

---
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---