تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8781 أدوات العرض

Hi All,


I want to create a lead in odoo 15 with an API call from other application. What should be the endpoint URL and request body. 

My custom Lead form contains few mandatory fields which also include many2many field like tags.

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

You can doing it using odoo xmlrpc. 

See the documentation about the same: https://www.odoo.com/documentation/15.0/developer/misc/api/odoo.html

XMLRPC: https://www.youtube.com/watch?v=isjhwKAL63M

Thanks

الصورة الرمزية
إهمال
الكاتب

Thank you for the response Niyas Raphy. But I dont want to create a seperate code for it, I wanted to use default xmlrpc APIs and test it on postman. Let me know if there is a way for it.

you dont need to add extra code for it.
call the existing create method and pass value into it

الكاتب

I need an example for it. Couldn't find it. URL, Reqeust Body etc

It seems you haven't gone through the above odoo doc, url will be the url of odoo instance.
please read above documentation and try it out

I think the question is very specific API to generate leads. Giving a link to Odoo's documentation, great answer.

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 22
3515
1
يونيو 24
2633
3
يناير 23
6786
0
سبتمبر 22
1940
2
سبتمبر 22
2702