blob: 04421368b9b0db849ae5671e21946fd2fbcef187 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import odooApi from '@/core/api/odooApi'
import { getAuth } from '@/core/utils/auth'
const checkoutPoApi = async ({ id }) => {
const auth = getAuth()
const dataCheckout = await odooApi(
'POST',
`/api/v1/partner/${auth?.partnerId}/sale_order/${id}/checkout`
)
return dataCheckout
}
export default checkoutPoApi
|