I have a script that works when creating a partner for xml-rpc using php, but I cant seem to create a lead using xml-rpc for php. Does anyone know how to create a lead using xml-rpc? Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
1
Cevapla
4622
Görünümler
crm.lead has a required field name that I don't see you providing.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
3
Tem 25
|
3113 | ||
|
1
Eki 24
|
2262 | ||
|
1
Nis 24
|
2327 | ||
|
0
Eyl 23
|
1815 | ||
|
1
Haz 23
|
2253 |
Dont use PHP, use Python instead
import xmlrpclib
url="http://localhost:8069/xmlrpc/common"
sock = xmlrpclib.ServerProxy(url)
uid = sock.login("dbName", "userName", "userPassword")
url = "http://localhost:8069/xmlrpc/object"
sock = xmlrpclib.ServerProxy(url)
args = {'contact_name':"Python Lead2", 'email_from': "python@email.com", 'addMoreFields': "more data", }
lead_id = sock.execute('dbName', uid, 'userPassword', 'crm.lead','create', args)