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

Generating Mail Letters in Odoo for Contracts Expiring in 3 Months

Subscribe

Get notified when there's activity on this post

This question has been flagged
automatedsignaturedocuments
2 Replies
2648 Views
Avatar
Dominik Gerbrand

Hello Odoo Community,

I am looking for a solution to automatically generate and send mail merge letters in Odoo for contracts that are about to expire, specifically 3 months before their end date. Although I've explored some of Odoo's features, I'm not entirely sure how to set this up effectively.

Here are the specifics of my scenario:


  • Contract Management: We use Odoo to manage our contracts, each with a defined start and end date.
  • Notifications: We want to automatically send a reminder mail merge letter (via email or physical mail) to our customers 3 months before their contract expires. This is to remind them about the upcoming expiration and to discuss any renewal options.
  • Customization: Each mail merge letter should include personalized details specific to each contract, such as the customer’s name, contract details, and our company's contact information.


My questions are:


  1. Automation: How can I configure Odoo to automatically generate and send these mail merge letters when a contract is nearing its end (3 months prior)?
  2. Templates: Is there a way to create templates for these letters that can dynamically pull in data from the contract fields?
  3. Extending Standard Features: If Odoo doesn’t provide a direct solution for this scenario, what modules or customizations would be necessary to implement this?
  4. Practical Experiences: Has anyone dealt with a similar use case and can share their insights or best practices?


Here are some of my thoughts and initial research:

  • I considered using the Automated Actions feature in Odoo to set up a trigger for sending out these letters.
  • While I'm familiar with Email Templates in Odoo, I'm uncertain how to apply them to contracts and whether they can be used for physical mail.
  • Custom modules or Odoo Studio might be useful, but I’m unsure about the best approach to take here.

Any help or guidance on how to efficiently achieve this would be greatly appreciated!

Thank you in advance for your support.

Best regards,

Dominik

1
Avatar
Discard
faOtools

It seems there is a ready universal solution for your purposes: https://apps.odoo.com/apps/modules/17.0/total_notify. This app makes Odoo automatically and regularly generate and send the table of any Odoo records filtered by particular criteria and relative dates. The data to show (so, columns,
'customer’s name, contract details, and our company's contact information' from your requirements) are also easily configurable.

Fadi Ezzeddine

I just edited my answer below.

Avatar
Fadi Ezzeddine
Best Answer

Hello,

quick question: Your contracts with the customers are managed through the Subscription app or do you have a custom app developped?


Edit:


No need for a custom App, you allready have everything you need in Odoo. This is how I would go about it:


1- Using Studio, create a new Report in the Subscription App (a Report is what pdf files are called in Odoo). You can easily pull fields from your Subscription app and add them to the pdf. 

For a guide on how to create and customize reports, watch this video:

https://www.youtube.com/watch?v=iFghjU_hWMQ&t=60s


2- Create your email template. Head into Settings --> Technical --> Email Templates and create a new one.

In the "Applies To" field, select Subscriptions (i do not have the Subscription App but i will show you a similar thing with Sales Order).

In the body of the email, if you need to pull a field from the Subcription App, just type "/" and select Dynamic Placeholder. and then choose the appropriate field. For example (below), let's say you want to show the customer name, you would do the following: 

/ --> Dynamic Field --> Customer --> Name --> Press Enter , then Odoo will automatically convert your choice into the proper "field name" for the email template. Like so


If you want to attach the PDF Report you create, head over to the Settings tabs, and then in Dynamic Reports field, choose the report you created.


Also, do not forget to set the To (recipients) field in the Email Configuration tabs to "{{ object.partner_id.id }}" (without the "" "") so that it sends it to the actual client for whom the subscription is ending in 3 months.


3- Create an automation that run daily to check the end date of all your subscription and that send the email template when it finds one that expires in 3 months before the end date of the subscription that will send the email template you just created. This you will need someone else to help you with as I honestly do not know how to code it. I am just here to help you with the logic of the process.


Regarding of whether you could have Odoo send the physical mail, there are a few options:

1- You could get to that is either have the email template CCed to someone in your office who will have to actually print or mail it (cheaper option). 

2- You could use a service that offers emails to physical mail, like https://click2mail.com/email-to-mail . Basically you email them the letters you want to send and they physically print and mail them (you will need to create a separate email template as per their instructions i imagine).

3- You could have a partner developp a module for you that connects your Odoo to one of the many "We send physical mail for you" Apis.


P.S: https://docupost.com/ has a Zappier integration that could be a potential solution to your physical email thing.


 

Hope this helps.

1
Avatar
Discard
Dominik Gerbrand
Author

Hi Fadi,

Contract details are mangaged with the subscription app - Odoo 17

Avatar
Dominik Gerbrand
Author Best Answer

Thank you, sir

0
Avatar
Discard
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
Automate sending sign request thru email not working
email automated signature
Avatar
0
Feb 25
2096
Link to Documents
signature documents sign
Avatar
Avatar
1
Jun 23
4078
How can I link signed documents to the Contact record that signed them? Solved
contacts signature link documents
Avatar
Avatar
Avatar
2
Dec 24
5394
How to add a document to a serial number of a product
action automated serial_number documents
Avatar
Avatar
1
Nov 23
3893
Can Odoo automatically remind Customers to sign documents if they don't sign quickly? Solved
email automated signature followup
Avatar
Avatar
1
Feb 22
5373
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