diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-22 16:14:59 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-22 16:14:59 +0700 |
| commit | 6b437d8b9338ac25a99a2f01b272bedfa942b8c4 (patch) | |
| tree | 3d799af6800397dc78b70a1bc4be6f5bfa55754b /app | |
| parent | d4688ee0f8590e54211548dd1cfd0faec87d04d0 (diff) | |
<Miqdad> send self pu params
Diffstat (limited to 'app')
| -rw-r--r-- | app/page.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/page.tsx b/app/page.tsx index af5ada3..9be784f 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -119,6 +119,10 @@ export default function Home() { if (submittedDispatch) data.dispatch_document = newDispatchImage!; if (isDispatch && shippingMethod) data.shipping_method = shippingMethod; + if (shippingMethod === "self_pickup") { + data.self_pu = "true"; + } + const response = (await odooApi( "PUT", `/api/v1/stock-picking/${barcode}/documentation`, |
