Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Automation rules

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
emailAutomationodoo17
3 Risposte
4795 Visualizzazioni
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
Abbandona
Avatar
Sujata
Risposta migliore

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
Abbandona
Avatar
ITANDWEBSUPPORT LTD
Autore Risposta migliore

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
Abbandona
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
Risposta migliore

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
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
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
2184
I need help setting up Odoo 17 to send quotes to customers' emails
email odoo17
Avatar
Avatar
1
ott 24
3597
Automation Rules Installer
Automation odoo17
Avatar
1
set 24
1276
Maintenance module automation not sending emails
email Automation Maintenance
Avatar
Avatar
Avatar
2
giu 23
3160
Automation Email History on Sales Orders
email history Automation odoo16features
Avatar
0
lug 23
1995
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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