This module is a part of SomConnexió original module.
We are working to separate the monolitic original module in small modules splited by functionalities.
This module provides a REST API for creating CRMLeads (service requests) with all the necessary data to activate the services offered by SomConnexió.
Table of contents
Configuration
To configure this addon in your Odoo project, follow these steps:
Install the package.
Go to Settings > Technical > Auth Api Key.
Create an API Key related with an user allowed to create CRMLeads.
Usage
Here’s an example of how to use the REST API to create a CRMLead:
import requests
url = "https://your-odoo-server/api/crmlead"
payload = {
"partner_id": "1234",
"iban": "ES62 3025 0011 7814 0009 1223",
"lead_line_ids": [
{
"product_code": "SE_SC_REC_MOBILE_PACK_UNL_20480",
"mobile_isp_info": {
"icc_donor": "123",
"phone_number": "654121234",
"type": "new",
"delivery_address": {
"street": "Carrer Oliva 4b",
"street2": "",
"zip_code": "08640",
"city": "Banyoles",
"country": "ES",
"state": "B",
},
"invoice_address": {
"street": "Carrer Oliva 4b",
"street2": "",
"zip_code": "08640",
"city": "Banyoles",
"country": "ES",
"state": "B",
},
},
"broadband_isp_info": {},
},
# Add here other CRMLeadLine if is required.
# One CRMLeadLine per service.
],
}
response = requests.post(url, json=payload)
print(response.json())
Contributors
Som Connexió SCCL <https://somconnexio.coop/>
Gerard Funonsas gerard.funosas@somconnexio.coop
Borja Gimeno borja.gimeno@somconnexio.coop
Coopdevs Treball SCCL <https://coopdevs.coop/>
Daniel Palomar daniel.palomar@coopdevs.org
César Lopez cesar.lopez@coopdevs.org
Carla Berenguer carla.berenguer@coopdevs.org
Metadata
Release files for odoo-addon-crm-lead-api-somconnexio 16.0.1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| odoo_addon_crm_lead_api_somconnexio-16.0.1.1.0.tar.gz | 12.8 kB | Details |
Release files / odoo_addon_crm_lead_api_somconnexio-16.0.1.1.0.tar.gz
| Download URL | odoo_addon_crm_lead_api_somconnexio-16.0.1.1.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cd32e8191d266a5ad6539974cc422e0b393f1bc0fe50f77201483c1b45ab7f6
|
|
BLAKE2b-256 checksum How to use checksums |
2ea81fe19e80d04f45d03f8c4907d6d5077a1ed2548655aa62b29a99ec2b016a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|