Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1015 Tampilan

Hi 

I was wondering if there is a easy way to setup a warning popup when Odoo is about to send an email. 
The user requests this so she is sure not to send an email to a supplier or customer by accident. 


I know I can do it via the code. But was also wondering if there isn't a easy option for this? Seems like a problem more people could be having. 


Kind regards

Jef Uytterhoeven

Avatar
Buang
Jawaban Terbai

Odoo doesn't provide a built-in option for email confirmation popups out of the box, but there are easy ways to achieve this without delving deep into custom code. Here's how you can handle it:


  • Option 1: Enable Email Confirmation in Odoo Settings

Odoo already offers a basic confirmation system to prevent unintended email sending:


Go to Settings → General Settings.

Look for the Email Gateway section.

Enable the option for Email Queue (if available).

This requires users to confirm or review emails before they are sent.

This will add an extra step, allowing the user to double-check outgoing emails.


  • Option 2: Use a Third-Party Module

The Odoo App Store has several third-party modules that provide email confirmation popups. Examples include:


Email Confirm Prompt: Adds a dialog box for users to confirm before sending emails.

Search for "email confirmation" or "email warning" modules compatible with your Odoo version.


  • Option 3: Implement an Automation Rule (No Coding Required)

You can create a server action in Odoo to notify or warn users before emails are sent:


Go to Settings → Technical → Automation → Server Actions.

Create a new action:

Model: Mail.Message or Mail.Mail.

Trigger Condition: Before sending.

Add a custom message or condition to warn users (e.g., for specific user groups or recipients).

This can display a warning or redirect users to confirm their action.

Avatar
Buang
Penulis

Hi thanks for your answer.
However non of the options seem to work.
For option 1: I cannot find the enable for email queue option. (searching in the search bar of general settings)
For option 2: nothing usefull commes up when i search the third-party apps for "email warning","email confirmation", "confirm prompt" or any combination of those
For option 3: I don't see server actions. I do see automation actions. When I create a new action there for mail.mail or mail.message there is no trigger before sending. And the rest would be to late in the process I guess.

Post Terkait Replies Tampilan Aktivitas
1
Mar 18
5779
2
Des 19
9021
0
Nov 19
4232
1
Jul 19
6946
0
Jul 19
2423