introduce message field in lead form

This commit is contained in:
Tobias Brunner 2025-01-31 17:13:55 +01:00
parent 5eb40ffc4f
commit ddec9d1126
No known key found for this signature in database
7 changed files with 46 additions and 5 deletions

View file

@ -86,7 +86,11 @@ class OdooAPI:
"partner_name": lead.company,
"email_from": lead.email,
"phone": lead.phone,
"description": "<br/>".join(service_details),
"description": (
f"{lead.message}<br/><br/>" + "<br/>".join(service_details)
if lead.message
else "<br/>".join(service_details)
),
"type": "lead",
"campaign_id": settings.ODOO_CONFIG["campaign_id"],
"source_id": settings.ODOO_CONFIG["source_id"],