Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

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

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

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

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
webclientapiformswebsite
2 Відповіді
2682 Переглядів
Аватар
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
Аватар
Відмінити
terremagenta
Автор

Pulling up.

Аватар
Sujata
Найкраща відповідь

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
Аватар
Відмінити
Аватар
terremagenta
Автор Найкраща відповідь

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
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Реєстрація
Related Posts Відповіді Переглядів Дія
Access web client through a website controller
webclient website
Аватар
0
серп. 16
4408
How can i display odoo relation in website form ?
forms website
Аватар
Аватар
1
лип. 15
4858
How to set that a person must upload particular file format in website (contact us page)?
forms website website_contact
Аватар
0
лист. 24
1582
Connecting Oddo customer fields to the website using studio
forms studio website
Аватар
0
лип. 20
3864
Is there any information on creating a webpage that links to a module? - Odoo8
forms website odoo8
Аватар
0
черв. 15
4311
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة 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 - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

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