Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

how can I get Oddo13-Forum to send mails on new posts

Odoberať

Get notified when there's activity on this post

This question has been flagged
mailForum
1 Odpoveď
935 Zobrazenia
Avatar
Flex Keller

How can I make it so that an email is sent to all users (employees) whenever a new forum post is created?

0
Avatar
Zrušiť
Avatar
Gracious Joseph
Best Answer

To make Odoo 13 Forums send an email notification to all users (e.g., employees) whenever a new forum post is created, you need to configure automated actions or use Odoo’s built-in email notification system. Below are the steps to achieve this:

1. Enable Notifications for Forum Posts

By default, Odoo Forums allow followers of a forum or specific posts to receive notifications. To ensure all employees are notified:

  1. Add All Employees as Followers:
    • Navigate to the forum you want to track:
      • Go to Website > Forums and open the specific forum.
    • Click on the Follow button and manually add all employees as followers.

    Tip: Ensure all employees have access to their Odoo accounts and valid email addresses.

  2. Default Followers on Forum Creation (Optional):
    • Use Odoo Studio or development tools to make employees follow newly created posts automatically.

2. Use Automated Actions

To send an email notification to all employees when a new post is created, you can create a custom Automated Action.

Steps to Configure Automated Action:

  1. Activate Developer Mode:
    • Go to Settings > Activate Developer Mode.
  2. Create the Automated Action:
    • Navigate to Settings > Technical > Automation > Automated Actions.
    • Click Create and configure as follows:
      • Model: Forum Post (forum.post).
      • Trigger: On Creation.
      • Action To Do: Send Email.
  3. Configure Email Template:
    • In the same automated action, set up an email:
      • Recipients:
        • Select All Employees.
        • Alternatively, you can create a mailing list of employees.
      • Email Template:
        • Create a new email template to format the message with details about the forum post.
        • Example template:
          <p>Hello,</p>
          <p>A new forum post has been created:</p>
          <ul>
            <li>Title: ${object.name}</li>
            <li>Author: ${object.create_uid.name}</li>
            <li>Link: <a href="${object.website_url}">${object.website_url}</a></li>
          </ul>
          <p>Best regards,<br/>Odoo Forums</p>
          
  4. Test the Automated Action:
    • Create a new forum post and check if the email notification is sent successfully.

3. Enable Mailing via Odoo Studio

If you’re using Odoo Studio, you can directly add the email-sending logic without needing to write Python code.

Steps:

  1. Open the Forum module in Studio.
  2. Add a server action to the forum.post model:
    • Trigger: On Creation.
    • Action: Send Email.
  3. Use the template you created earlier to notify all employees.

4. Custom Python Code (Optional)

If you want more control, you can create a custom module to handle email notifications for forum posts.

Example Code:

from odoo import models, api

class ForumPost(models.Model):
    _inherit = 'forum.post'

    @api.model
    create(vals):
        # Call the original create method
        post = super(ForumPost, self).create(vals)

        # Notify employees
        employees = self.env['res.users'].search([('groups_id', 'in', self.env.ref('base.group_user').id)])
        for employee in employees:
            template = self.env.ref('module_name.new_forum_post_email_template')
            self.env['mail.template'].browse(template.id).send_mail(post.id, email_values={'recipient_ids': [(4, employee.partner_id.id)]})
        
        return post
  • Replace module_name.new_forum_post_email_template with the XML ID of your email template.
  • Place the code in a custom module, and ensure the module is installed.

5. Additional Tips

  • Unsubscribe Option:
    • If you notify all employees, provide a way for users to unsubscribe from notifications. Add a link in the email to manage subscriptions.
  • Performance Optimization:
    • For large organizations, sending emails to many users might slow down the system. Consider batching or using a queue.
  • Email Delivery Logs:
    • Navigate to Settings > Technical > Emails > Emails to check if emails are sent successfully.

By using these methods, you can ensure that all employees receive notifications whenever a new forum post is created. Let me know if you need further assistance or detailed guidance on implementing these steps!

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
<( Servicio al pasajero)||¿Cómo hablar directamente en Volaris?
mail
Avatar
0
nov 25
603
Emails to Microsoft Outlook/Hotmail are rejected
mail
Avatar
1
okt 25
1022
Anyone knows how to set iCloud+ mailing accounts to your own domain in Odoo?
mail
Avatar
Avatar
Avatar
2
okt 25
1127
Followers in emails
mail
Avatar
Avatar
Avatar
3
sep 25
2946
Remove buttons in emails to clients Solved
mail
Avatar
Avatar
Avatar
2
okt 25
969
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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