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

Sending the data of the filled form to the API on the external server?

Suscribirse

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

Se marcó esta pregunta
webclientapiformswebsite
2 Respuestas
2691 Vistas
Avatar
terremagenta

Hi!


This is my first post! I hope that there is someone helpful.

Together with the team, we need to create on the website of our Odoo instance (Community version) a form (e.g. using Formio - Forms App), but we have a problem. We need to send information after the user completed the form to the external application on another server (the old CRM system that our sales director does not want to give up). But we have no idea how to do it, because there is no documentation to Formio when it comes to this issue. We don't want to save those data on the Odoo instance database, we need just to transfer them directly.


Can someone guide us? Any links to documentation? Tutorial?


Why we need this and how this have to work:

  1. User fills form at the company odoo website,
  2. He need to give some answers: name, surname, company name, pick the range of products that he want to order from the list and the project name,
  3. These data we need to send to our old CRM, so our CRM verify if the user is a Value added reseller and if he is and has been our trusted customer - send notification with those data to our boss who is taking care of this kind of clients by himself.
0
Avatar
Descartar
terremagenta
Autor

Pulling up.

Avatar
Sujata
Mejor respuesta

Hello Terremagenta,

To achieve this flow in Odoo, follow these simplified steps:

1. Create a Web Form:
  • Build a form on your Odoo website where users fill in their name, surname, company name, product range, and project name.
  • Use Odoo Studio or Website > Forms to create this form or you can do the same from backend.
2. Capture Data & Process It:
  • Create a custom controller to handle the form submission, which captures the data and sends it to your old CRM for verification.

Example Controller:

from odoo import http
from odoo.http import request
import json

class WebsiteFormController(http.Controller):
    @http.route(['/submit_reseller_form'], type='http', auth="public", website=True)
    def submit_reseller_form(self, **post):
        data_to_crm = {
            'name': post.get('name'),
            'surname': post.get('surname'),
            'company_name': post.get('company_name'),
            'product_range': post.get('product_range'),
            'project_name': post.get('project_name')
        }
        response = self.send_data_to_crm(data_to_crm)
        if response.get('is_verified'):
            self.notify_boss(data_to_crm, "boss@example.com")
        return request.render('your_module.form_success_template')

    def send_data_to_crm(self, data):
        crm_api_url = "https://your-crm-url.com/verify_reseller"
        response = requests.post(crm_api_url, json=data)
        return response.json()

    def notify_boss(self, data, boss_email):
        template = request.env.ref('your_module.email_template_notify_boss')
        template.sudo().send_mail(request.uid, email_values={'email_to': boss_email})
3. Send Data to CRM:
  • The controller sends the form data to your CRM (via API).
  • Your CRM verifies if the user is a trusted reseller.
4. Notify the Boss:
  • If the CRM verifies the reseller, send an email notification to the boss using an email template.

Example Email Template:

This approach simplifies the entire process. Let me know if it helps :)

0
Avatar
Descartar
Avatar
terremagenta
Autor Mejor respuesta

Thank you for your help!


I apologize for the long response time, I forwarded your message to my teammates and the topic went quiet for a while.


It turns out that your solution was so good and effective, and most importantly - easy to implement, that the team decided to transfer our entire company system to Odoo :)


They have been learning the software for a few months now.


There are also plans to launch Odoo as a heavily modified SaaS platform, we will soon start looking for collaborators to develop the platform. Would you like to help us with this? :)


Unfortunately, I do not have the right karma to write to you directly, how could we get in touch?

0
Avatar
Descartar
¿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
Access web client through a website controller
webclient website
Avatar
0
ago 16
4413
How can i display odoo relation in website form ?
forms website
Avatar
Avatar
1
jul 15
4864
How to set that a person must upload particular file format in website (contact us page)?
forms website website_contact
Avatar
0
nov 24
1584
Connecting Oddo customer fields to the website using studio
forms studio website
Avatar
0
jul 20
3864
Is there any information on creating a webpage that links to a module? - Odoo8
forms website odoo8
Avatar
0
jun 15
4313
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