Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

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

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
mailForum
1 Responder
924 Vistas
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
Descartar
Avatar
Gracious Joseph
Mejor respuesta

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
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
<( 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
oct 25
1007
Anyone knows how to set iCloud+ mailing accounts to your own domain in Odoo?
mail
Avatar
Avatar
Avatar
2
oct 25
1113
Followers in emails
mail
Avatar
Avatar
Avatar
3
sept 25
2932
Remove buttons in emails to clients Resuelto
mail
Avatar
Avatar
Avatar
2
oct 25
965
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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