Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How to send an automatic email to new customers after their first purchase?

Subscribe

Get notified when there's activity on this post

This question has been flagged
marketingquickstartQuickstartMarketingAutomation
3 Replies
4796 Views
Avatar
Kevin Harrings (kha)

Sending an automatic email to a new customer after their first purchase is a strategic move to introduce them to additional products or services they might find valuable. This personalized outreach creates an opportunity for upsells and cross-sales, maximizing revenue from the initial transaction and increasing customer lifetime value.

We will use the Marketing Automation app to answer it.

0
Avatar
Discard
Avatar
Kevin Harrings (kha)
Author Best Answer

Create a campaign and target the audience

Go to Marketing Automation - New

Target: Sales order - this will allow us to filter on the sale order status. 

Unicity based on: Customer - By choosing the customer field, we are sure that we will send the email to the same customer only once

Filter:​ In developer mode, you can force the following path partner_id.sale_order_count to check if the contact already has any sales order or quotation linked. The number of sales order and quotation (count) is reflected by the smart buttons on the contact form. As we want to target only new customers, they can only have 1 sale order or 1 subscription linked. 
To exclude any quotation, we add a filter on the state field.
NB: Though sales orders and subscriptions are merged into the same Odoo model (sale.order), they have different count fields. Therefore, we need to add another filter on partner_id.subscription_count (to be forced the same way as above), and add a filter to only apply the rule on subscriptions that are In Progress. ​​​


Create an Activity

Once you defined your target audience, you can start creating your activity (Email sequence).

Activity type: Email

Trigger: In this case we will choose a time-based trigger, ex. 10 days after the sales. 

Mail Template: Create and adapt your email template using one of the predefined templates or create a new one. 

Save & Close.

Now you are ready to start the automation by clicking on the Start button.


1
Avatar
Discard
Annika Madsen

Is there any way to set this up in version 15?

Avatar
M, Francois-Karl Brouillette
Best Answer

Thank you for this tutorial! Unfortunately I can't seem to filter based on this partner_id.sale_corder_count field. I even tried filtering my contact list using this filter without any success. It always return the total amount of customers regardless of the number I add (0,1,2, etc.) I can however add the field in the contact list view with Studio and I can see the number of Sale Orders per contact in the list view but cannot filter using it! 


Also not that the field sale_order_count is not set to be stored or indexed by default. 


Thanks for your help! :)

0
Avatar
Discard
Avatar
Baden de Bari
Best Answer

I have adding Salesperson / Subscription but this is not available.  What are the prerequisites, which I could be missing?


I have tried with your update but fails at finding subscription_state. 


["&", ("partner_id.sale_order_count", ">=", 0), "&", ("state", "=", "sale"), "|", ("partner_id.subscription_count", ">=", 1), ("stage_id.name", "=", "In Progress")]


I'm finding it frustrating looking at the Technical/Database/Models and Fields, as they don't show all the functions for a given object.  Where can I find a full object list and be able to traverse all functions, variables and relationships?


Where can I find documented "partner_id.sale_order_count" and where to find "subscription_state".

subscription_state -  could not find this in the fields list.


Using Odoo 16.


--Update-- 

By looking at a subscription, I see "

  • QuotationIn Progress(Stage)

I then used Stage=In Progress.   However, this still doesn't answer how I can find this without all the guess work and poking around, please? Is there an addon that offers intelisense or a proper object model view?



0
Avatar
Discard
Kevin Harrings (kha)
Author

Hey! Thank you for your comment. There indeed was an error in the screenshot, though the description is correct. The right path to follow is partner_id.subscription_count. You should follow the contact as starting point rather than the salesperson. I have adapted the screenshot.

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

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

Sign up
Related Posts Replies Views Activity
How do I connect the Epson TM-T88VII to Odoo?
quickstart Quickstart
Avatar
Avatar
2
Oct 25
931
How to Set Customer-Specific Product Names Solved
quickstart Quickstart
Avatar
1
Nov 25
1425
✅ Odoo E-commerce: How to discriminate deliveries based on the type of clients
quickstart Quickstart
Avatar
0
Aug 25
1437
How can Import an existing Spreadsheets with formulas with out doing it manually? Solved
quickstart Quickstart
Avatar
2
Aug 25
1867
Does Odoo manage WebP ? Solved
quickstart Quickstart
Avatar
Avatar
Avatar
3
Jul 25
4543
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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