콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2788 화면

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!

아바타
취소
베스트 답변

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

관련 게시물 답글 화면 활동
1
2월 24
4119
1
12월 23
2608
2
8월 23
2300
1
12월 23
4043
1
7월 23
2889