Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Kov
    • Nábytek
    • Jídlo
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • IT hardware a podpora
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Automation rules

Odebírat

Get notified when there's activity on this post

This question has been flagged
emailAutomationodoo17
3 Odpovědi
4889 Zobrazení
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
Zrušit
Avatar
Sujata
Nejlepší odpověď

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
Zrušit
Avatar
ITANDWEBSUPPORT LTD
Autor Nejlepší odpověď

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
Zrušit
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
Nejlepší odpověď

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

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
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
úno 25
2231
I need help setting up Odoo 17 to send quotes to customers' emails
email odoo17
Avatar
Avatar
1
říj 24
3652
Automation Rules Installer
Automation odoo17
Avatar
1
zář 24
1293
Maintenance module automation not sending emails
email Automation Maintenance
Avatar
Avatar
Avatar
2
čvn 23
3214
Automation Email History on Sales Orders
email history Automation odoo16features
Avatar
0
čvc 23
2032
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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