Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

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

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
mailForum
1 Beantwoorden
923 Weergaven
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
Annuleer
Avatar
Gracious Joseph
Beste antwoord

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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
<( 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
1005
Anyone knows how to set iCloud+ mailing accounts to your own domain in Odoo?
mail
Avatar
Avatar
Avatar
2
okt. 25
1113
Followers in emails
mail
Avatar
Avatar
Avatar
3
sep. 25
2929
Remove buttons in emails to clients Opgelost
mail
Avatar
Avatar
Avatar
2
okt. 25
965
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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