Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
webclientapiformswebsite
2 Odgovori
2701 Prikazi
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
Opusti
terremagenta
Avtor

Pulling up.

Avatar
Sujata
Best Answer

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
Opusti
Avatar
terremagenta
Avtor Best Answer

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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Access web client through a website controller
webclient website
Avatar
0
avg. 16
4420
How can i display odoo relation in website form ?
forms website
Avatar
Avatar
1
jul. 15
4866
How to set that a person must upload particular file format in website (contact us page)?
forms website website_contact
Avatar
0
nov. 24
1585
Connecting Oddo customer fields to the website using studio
forms studio website
Avatar
0
jul. 20
3866
Is there any information on creating a webpage that links to a module? - Odoo8
forms website odoo8
Avatar
0
jun. 15
4313
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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