Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

How to change the setting in sessions functions!

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
sessionrpcodoorpcjsonv15
1 Responder
3499 Vistas
Avatar
Muhammad Hassan

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!

0
Avatar
Descartar
Avatar
Amr Abd-Alkrim (FireBits)
Mejor respuesta

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


2
Avatar
Descartar
Muhammad Hassan
Autor

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!

Amr Abd-Alkrim (FireBits)

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

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Odoo.sh does not receive Request headers? Resuelto
request rpc odoo odoo.sh v15
Avatar
Avatar
1
feb 24
5101
How to hide the add detail line button of an order
odoo v15
Avatar
1
dic 23
3468
Want to show Products line in Payment View
odoo v15
Avatar
Avatar
Avatar
2
ago 23
2938
AttributeError: 'ir.model.data' object has no attribute 'xmlid_to_object' Resuelto
odoo v15
Avatar
Avatar
1
dic 23
5066
how to customize default view in odoo 15?
odoo v15
Avatar
Avatar
1
jul 23
3725
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now