Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0058227 | Retail Modules | Retail API | public | 2025-03-13 10:04 | 2025-03-20 13:10 |
Reporter | AgatheBertin | ||||
Assigned To | inaki_luque | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0058227: Update of a unactive product through API is failing | ||||
Description | When trying to update a product through API, if the product is set as inactive we have the following issue duplicate key value violates unique constraint "m_product_value" Detail: Key (value, ad_org_id, ad_client_id) | ||||
Steps To Reproduce | Send this json 2 times in a row { "client": "AWO-QA", "organization": "0", "searchKey": "TestProd1_ABE", "name": "Test Product 1", "description": "Test Product 1", "uom": "Unit", "productCategory": "Alcohol", "taxCategory": "IVA Normal", "active": false, "productType": "I", "generic": false, "stocked": true, "purchased": true, "sold": true, "showCharactDesc": true, "scale": false, "showStock": false, "allowAnonymousSale": true, "multiSelectable": false, "groupedProduct": true, "printServices": true, "allowDeferredSell": false, "linkedToProduct": false, "uniquePerDocument": false, "priceRuleBased": false, "printDescription": false, "returnable": true, "summaryLevel": false, "billOfMaterials": false, "printDetailsOnInvoice": false, "printDetailsOnPickList": false, "verified": false, "calculated": false, "production": false, "quantityVariable": false, "discontinued": false, "quantityType": false, "printPrice": true, "volume": 15, "weight": 17 } ===> the second is failing NOTE : if you send the same one with active=true, there is no issues | ||||
Proposed Solution | Allow to update a product as inactive (as it's working when the product is active) and do not try to create a new one. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2025-03-13 10:04 | AgatheBertin | New Issue | |||
2025-03-13 10:04 | AgatheBertin | Assigned To | => Retail | ||
2025-03-13 10:04 | AgatheBertin | OBNetwork customer | => No | ||
2025-03-13 10:04 | AgatheBertin | Triggers an Emergency Pack | => No | ||
2025-03-13 11:41 | hgbot | Merge Request Status | => open | ||
2025-03-13 11:41 | hgbot | Note Added: 0176779 | |||
2025-03-13 12:18 | jorgewederago | Assigned To | Retail => inaki_luque | ||
2025-03-13 12:18 | jorgewederago | Status | new => acknowledged | ||
2025-03-13 12:21 | jorgewederago | Status | acknowledged => scheduled | ||
2025-03-20 13:09 | hgbot | Merge Request Status | open => approved | ||
2025-03-20 13:10 | hgbot | Note Added: 0177027 | |||
2025-03-20 13:10 | hgbot | Resolution | open => fixed | ||
2025-03-20 13:10 | hgbot | Status | scheduled => closed | ||
2025-03-20 13:10 | hgbot | Note Added: 0177028 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|