Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
Câu hỏi đã đóng với nguyên nhân: Không phù hợp hoặc quá cũ bởi Edouard MORET trên 30/01/2024 07:06:32
1 Trả lời
1292 Lượt xem

Hello !

I am configurating an app to make a POST call on my database. (Using MuK Rest API module)

I am posting these fields :

[{

  "name": "name_var - titre_var",

  "email_from": "email_var",

  "contact_name": "contact_name_var",

  "description" : "Date : date_var - note_var",

  "type" : "lead"

}]


Earlier i had authentication errors, but i resolved it so it's not it. But when i try to make the POST request, i get a " The operation cannot be completed: - Create/update: a mandatory field is not set
 [...]
 violates not-null constraint, ;DETAIL: Failing row contains (14705, null, null, null, null, 0, 13, 1, null, null, 0, null, null, null, null, null, null, null, 13, 13, null, null, null, null, null, lead, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, t, null, null, null, null, null, 2024-01-29 08:13:32.351352, 2024-01-29 08:13:32.351352, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null). 
 [...]
doo.exceptions.ValidationError: The operation cannot be completed: - Create/update: a mandatory field is not set. - Delete: another model requires the record being deleted. If possible, archive it instead. Model: Lead/Opportunity (crm.lead) "

Anyone has an idea ? 

Thanks for your attention.

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

Here is the call I am making : 

https:/test.odoo.com/api/v2/create/crm.lead?values={"name": "[name_var] - [titre_var]", "email_from": "[email_var]","contact_name": "[contact_name_var]","description" : "Date : [date_var] - [note_var]","type" : "lead"}

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 23
5426
3
thg 7 19
11195
2
thg 12 22
4340
2
thg 3 24
9769
0
thg 10 18
6953