Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

[Odoo > 8.0]How to enable email-notifications on lead creation from the website contact form?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
emailleadsnotificationcontactus9.0
2 Respostes
13957 Vistes
Avatar
Ermin Trevisan

Using standard Odoo community edition without additional modules and an almost standard setup.

1
Avatar
Descartar
Avatar
Ermin Trevisan
Autor Best Answer

I've spent the hell a lot of time to find out a reasonable way....this is my suggestion:


1. Email Server Setup
Setup a standard incoming email server with a catchall account as described everywhere. Setup a standard SMTP server. It is not necessary to use stuff like SMTP per user or so.


2. User email address and user email alias
Setup a user email address for the default sales person on the same domain as the catchall domain, setup an email alias with a different name in order to avoid dead locks. Example:
- user email address: john.doe@example.com
- user email alias: john-doe@example.com, set the notification preference to "always receive notifications..."


3. Website Admin: Set the default salesperson and sales team. This is nice, but has unfortunately absolutely no effect. All website contacts are nevertheless only assigned to the admin user. So we have to setup an automated action to correct this faulty behaviour which Odoo is not willing to change (see https://www.odoo.com/forum/help-1/question/how-to-set-the-default-sales-person-for-e-commerce-orders-instead-of-administrator-87414 and https://github.com/odoo/odoo/issues/4682)


4. Difference between message subtype "discussion" and message subtype "internal note"

When somebody sends an email message to a valid odoo alias (for example to sales@example.com), then this is a message of the subtype discussion. For such messages email notifications are sent to the followers according to the notification preference of the users. In this case we do not have a problem.
But messages from the creation of new lead through the website contact form are internal notes, and for internal notes there is no automatic email notification in standard Odoo. So we have to create our own automated action to do this.


This process has 3 steps, first we create an email template to define a proper message, secondly we create a server action which sends an email notification using our defined template and at last we define an automated action, which assigns the new lead created to the default sales person and sends an email notification.
Step 1:
Duplicate the email template "Reminder to User" and adapt it according your taste, rename it for example as "New Lead Notification"
Step 2:
Create a server action named "New Lead Notification", action to do: send email, base model "Lead/Opportunity", email template "New Lead Notification"
Step 3:
Create an automated action to assign the new lead to the default sales person and send an email notification to this sales person:
Create a new automated action, name it "Assign default sale person to lead", set "when to run" as "On creation", then on the Actions tab define the "Responsible" as your default sales person and add him and others as followers as you like. Under "Server actions to run" add our server action defined in Step 2.
Please make sure you have installed the module base_action_rule (Odoo <=10.0) or base_automation (Odoo 11.0).


Finished!


Side note: If you are doing this, you have to use a SMTP/MTA service which allows to relay messages, because the sender is the original sender of the email or the contact request outside of Odoo and this message is forwarded by Odoo to the sales person also outside of Odoo, this is not always accepted (Amazon SES for example does not accept it).

3
Avatar
Descartar
Avatar
Philippe Thuaud
Best Answer

Thanks @Ermin

It worked for me.


0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Website Contact Form Both Send E-Mail and Add Lead/Opportunity
leads contactus
Avatar
0
de gen. 25
1391
CAN I CONFIGURE DIFFERENT OUTGOING EMAILS?
email leads
Avatar
0
d’ag. 22
2687
[9.0]Using a different email template for sending orders and invoices Solved
email 9.0
Avatar
Avatar
1
de gen. 17
4473
Is there an Email Notification on Leads/Issues?
email notification
Avatar
Avatar
4
d’ag. 16
7285
Mail Notification while approving leave in OpenERP in Andoird
email notification
Avatar
0
de març 15
4827
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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