Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9012 Lượt xem

I want to add customer or drop customer with postman how can i send request? 

please help me.

i use to odoo15.

thanks a lot.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Emin,

To create or remove records using POSTMAN ie with the use of API's you must first create a controller to make the api call to.

Like lets say you create a controller function for url '/create/customer' and in that function you accept the arguements from the api as json data which can be used to create customers into the database using orm methods or sql queries.

To drop a customer similarly you create another controller function in which you pass in the customer id or a unique identity with which the user can be identified and in the controller function you write the script to remove the customer.

For reference: https://stackoverflow.com/questions/65311574/odoo-controller-create-record-into-database

Regards

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi muhammed emin,

Refer to know how to  Authenticate, Fetch Data & Create Records in Odoo from Postman  ,

https://www.youtube.com/watch?v=wGvuRbCyytk

Hope it helps,
Kiran K

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
1664
1
thg 8 25
287
1
thg 8 25
582
2
thg 7 25
3034
3
thg 7 25
746