Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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

Automation rules

Suscribirse

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

Se marcó esta pregunta
emailAutomationodoo17
3 Respuestas
4899 Vistas
Avatar
ITANDWEBSUPPORT LTD

Is it possible to send an email to an external address using 'Automation Rules'? I want to send an email to sales@mydomain.com when a website order is placed. 

I am running Odoo17 Enterprise on premise.

0
Avatar
Descartar
Avatar
Sujata
Mejor respuesta

Hello Labtree ltd,

Here are the steps to Send an Email Using Automation Rules:

  1. Go to Automation Rules:
    • Navigate to Settings > Technical > Automation > Automated Actions.
  2. Create a New Automated Action:
    • Click Create to add a new automation rule.
  3. Define the Trigger:
    • Model: Set the model to Sale Order (since you're working with website orders).
    • Trigger Condition: Choose On Creation or On Update (depending on when you want the email to be sent).
    • Filter: Add a domain filter to check if the sale order is from the website, using the website_id field. The domain might look something like:
      website_id field. 
      The domain might look something like: [('website_id', '!=', False)]
      {In Odoo, every time an order is created from the website, it has a website linked to the order. You can also use teams to apply the domain.}
  4. Add Server Action:
    • In the Action to Do dropdown, choose Send Email.
    • In the Email Template field, you can create or select an email template. This template will define the content of the email.
      [ I have added the steps with screenshot at the end, how to create an email template ]
  5. Save the Automation Rule:
    • Once you've configured everything, save the rule.


Here are the steps to Create an Email Template with Dynamic Sales Order Information:

  1. Navigate to Email Templates:
    • Go to Settings > Technical > Email > Templates.
  2. Create a New Email Template:
    • Click on the Create button to start a new template.
  3. Basic Template Settings:
    • Name: Give your template a meaningful name, such as "Sales Order Notification for Website Orders".
    • Model: Select Sale Order from the model dropdown. This will link the template to the sale order data.
    • To (Email): Enter the email where you want the email to be sent (e.g., sales@mydomain.com).
  4. Subject:
    • You can make the subject dynamic by using placeholders to include details like the sale order name. 
      For example: New Sale Order {{ object.name }} from Website
  5. Email Body (HTML):
    • In the body of the email, use Odoo's templating language (Jinja2) to insert dynamic fields from the Sale Order model.
  6. Optional: Attach the Sale Order PDF:
    • Scroll down to the Advanced Settings section.
    • In the Optional Report to Print field, select Sale Order / Quotation to attach the PDF version of the sales order to the email.
  7. Save the Template:
    • Once you have configured the template, click Save.


Let me know, if it helps.

0
Avatar
Descartar
Avatar
ITANDWEBSUPPORT LTD
Autor Mejor respuesta

Thanks to both of you for the information. I have now got this working. I cannot click on the upvotes or ticks as I don't have enough Karma? :/

0
Avatar
Descartar
Sujata

You're welcome! I'm glad to hear it's working now. No worries about the upvotes or ticks, I appreciate the feedback!
Feel free to reach out if you need further assistance in the future. :)

Avatar
Parker D
Mejor respuesta

Hi Labtree Ltd :)
yeah sure. You can get into the developer or debug mode and then access the "automated actions". There are countless good tutorials on YouTube and also here in the forum for several versions of Odoo. I try to sum some things up for you:

  1. You have to have this module installed:  base_automation
  2. Then you can enter the developer or debug mode. Here is the documentation.
  3. Then you go to: Settings -> Technical -> Automation -> Automated Actions
  4. Then you can add a new action

These actions work based on certain triggers, like creating data like a contact or changing something of some data like setting a delivery order to "done". 

If you google "Odoo automated action e-mail" you should find said tutorials.

For your case and since I have a similar automated action in my Odoo 14, here some infos for your to solve your problem: 

  • Set the model to "Sales Order"
  • Set the trigger to "On Update"
  • As Trigger Fields choose "Status (sale.order)"
  • On Before Update Domain you have to choose nothing
  • On Apply I use ["&",["state","=","sent"],["team_id","=","Website"]]. You can directly copy that into the black code editor and of cause adjust it, if you need to.
  • Set Action To Do to "Send Email"
  • For Email Template you have can go to the mail template "Sales Order: Confirmation Mail", copy that, adjust it and then choose your copied template for you automated action. 

I hope, this helps you and saves you some time.

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

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
How to create an Automated action for Sending a Warning Mail based on a date field in sale.order.line model,
email Automation
Avatar
0
feb 25
2232
I need help setting up Odoo 17 to send quotes to customers' emails
email odoo17
Avatar
Avatar
1
oct 24
3653
Automation Rules Installer
Automation odoo17
Avatar
1
sept 24
1295
Maintenance module automation not sending emails
email Automation Maintenance
Avatar
Avatar
Avatar
2
jun 23
3220
Automation Email History on Sales Orders
email history Automation odoo16features
Avatar
0
jul 23
2033
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 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