Odoo integration

Status
Not open for further replies.

greychain

Gold Partner
Advanced Certified
Joined
Jul 13, 2018
Messages
779
Reaction score
122
Odoo passes back a cookie , which is then used for authentication, when you use the authentication REST API.

Is there any way to get this directly into the CRM template? Or will I need to write some middleware to do this?

<RequestsCookieJar[<Cookie session_id=357dfe2152f6870a59e55b777095a31b7b966bb1 for 192.168.1.231/>]>
{"count": 1, "prev": null, "current": 1, "next": null, "total_pages": 1, "result": [{"id": 9, "phone": "346463463", "name": "gsdgsdgsdgsdg", "company_id": {"name": false}}]}
 
You'll definitely need a middleware for that. Preferably something that supports cookie storage for HTTP requests, like ASP.NET C# or PHP.
 
  • Like
Reactions: edossantos
Yes I'm working on it, looks like it'll be a basic Python script I call to do an authentication and then a lookup to return info and another one to do call journaling later.
 
My current version is only a simple POC, It only looks up the phone not mobile etc and returns the customer info plus a URL to open their contact page. Waiting to see if the customer wants to fully implement this , which as we are using community version of Odoo will require a call logging module, although I have been using the Log function to record calls.

I was thinking that I could use the CFD function to look up the data. Which would avoid the need for an external server.
 
  • Like
Reactions: VOIP-CRM
I was thinking that I could use the CFD function to look up the data. Which would avoid the need for an external server.
From a CFD app you can lookup the data, but you can't pass it to the client (at least for the time being...). You could override the contact name shown in the Web Client, but you can't send the URL for the contact popup.
 
The CFD app can lookup and populate the 3CX contacts database though, same as for other lookup types?

Currently my CRM integration requires a PHP app to login and get the details from Odoo. I thought it would be good if I could do that using CFD instead. How would I pass parameters from the CRM configuration form to the CFD?
 
The CFD app can lookup and populate the 3CX contacts database though, same as for other lookup types?

Currently my CRM integration requires a PHP app to login and get the details from Odoo. I thought it would be good if I could do that using CFD instead. How would I pass parameters from the CRM configuration form to the CFD?
This is not possible at the moment. But if you can wait a bit, in the next release of 3CX we will be changing how CRM integrations work in regards to passing information to the 3CX clients (existing templates will continue working without changes). So you will be able to pass the contact name and URL by attaching data to the call, and this way get a popup to the URL you need...
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,894
Members
165,472
Latest member
arneg