Skip to content

Commit

Permalink
fix: API path used for adding tracking number (#811)
Browse files Browse the repository at this point in the history
* RM#87305
  • Loading branch information
lme-axelor authored Nov 22, 2024
1 parent 0f566db commit 78edee3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions changelogs/unreleased/87305.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"title": "StockMoveLine: use the right API to add a tracking number",
"type": "fix",
"packages": "stock"
}
12 changes: 7 additions & 5 deletions packages/apps/stock/src/api/tracking-number-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ export async function updateStockMoveLineTrackingNumber({
trackingNumber,
}) {
return getActionApi().send({
url: `/ws/aos/stock-move-line/${stockMoveLineId}`,
method: 'put',
url: `/ws/rest/com.axelor.apps.stock.db.StockMoveLine/${stockMoveLineId}`,
method: 'post',
body: {
id: stockMoveLineId,
version: stockMoveLineVersion,
trackingNumber,
data: {
id: stockMoveLineId,
version: stockMoveLineVersion,
trackingNumber,
},
},
description: 'add tracking number on stock move line',
matchers: {
Expand Down

0 comments on commit 78edee3

Please sign in to comment.