Hello Guys!
I am having problem to make some requests.
I wanted to make request on session.rpc function but there is somewhere url configuration inside that function.
I passed the endpoint of url but session.rpc func is adding another url before the endpoint
For example:
My problem line is
constresult=awaitsession.rpc('/im_livechat/init', {channel_id: this.options.channel_id});
in this '/im_livechat/init' is a endpoint and it generates http://127.0.0.1/im_livechat/init
I wanted to change the base url generated from session.rpc func.
The error shows in the console that
http://127.0.0.1/im_livechat/init not found error
Thank You!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Are you running Odoo locally ? i think you can try to change it from system parameters in Settings > Technical > System Parameters menu. If this option didn't work for you explain to me more why do you want to change your url
Activate the developer mode first.
Edit:
Live chat already gives you pre configured widget with your odoo url to put on your other websites there is nothing wrong with the url
Happy to help :) an upvote will be awesome
Thanks, Amr Abd-Alkrim helping me!
My hosting server is IIS.
But my main problem is that I wanted to integrate Livechat module on my other websites.
But the problem is that when I add LiveChat widgets inside the other website.
All the dependencies needs to load from the server where LiveChat installed. For example the file endpoint is "/im_livechat/init" the complete url should be "http://myserver.com/im_livechat/init"
But instead it generates url like
"http://website-url--where-i-am-trying-to-integrate/im_livechat/init"
It can't load LiveChat files from any other server except where livechat installed.
I spend two weeks finding how odoo is generating base url but still unable to find the solution.
If you need more information ask me i can explain more.
Sorry for the weak english!
Thanks in advance for the help!
Live chat already gives you pre configured widget with your odoo url to put on your other websites there is nothing wrong with the url see image above
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Feb 24
|
2499 | ||
|
1
Dec 23
|
1002 | ||
|
2
Aug 23
|
934 | ||
|
1
Dec 23
|
2076 | ||
|
1
Jul 23
|
1522 |