Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

How to send a mail thread when sending messages?

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
mailmessagesthread
1 Antworten
14617 Ansichten
Avatar
Flyguy

From a lead in OpenERP I can send a message to the lead. When the lead replies, I can see that reply in the lead. So this mailing back and forth works fine.

But whenever I mail the lead, he only receives the (current) message that I send him. I would like him to receive the entire thread. So instead of just the latest message, I want him to receive the entire history of the conversation.

How can I get this to work?

5
Avatar
Verwerfen
Avatar
MUHAMMAD Imran
Beste Antwort

In Odoo, you can use the message_post method to send a message and create a mail thread. Here's an example of how you might use this method to send a message:


# Send a message on a record

record.message_post(

    body='This is the message body',

    subject='This is the subject',

    partner_ids=[partner_id], # list of recipient partner ids

    attachment_ids=[attachment_id], # list of attachment ids

    message_type='comment', # type of message (comment, email, etc.)

    subtype='mail.mt_comment', # subtype of message

    author_id=self.env.user.partner_id.id, # id of the message's author

)


# Send a message on a model

self.env['mail.thread'].message_post(

    body='This is the message body',

    subject='This is the subject',

    partner_ids=[partner_id], # list of recipient partner ids

    attachment_ids=[attachment_id], # list of attachment ids

    message_type='comment', # type of message (comment, email, etc.)

    subtype='mail.mt_comment', # subtype of message

    author_id=self.env.user.partner_id.id, # id of the message's author

)

The message_post method creates a new mail.message record and adds it to the mail thread associated with the record or model. The message will be sent to the specified recipients (partner_ids) and will include any specified attachments (attachment_ids).


You can also use the mail.compose.message model to create and send a message. This allows you to specify additional options, such as the message template and the email addresses of the recipients. Here's an example of how you might use this model to send a message:


compose_form = self.env.ref('mail.email_compose_message_wizard_form')

ctx = {

    'default_model': 'my.model',

    'default_res_id': self.id,

    'default_use_template': bool(template_id),

    'default_template_id': template_id,

    'default_composition_mode': 'comment',

    'mark_so_as_sent': True,

}

return {

    'name': _('Compose Email'),

    'type': 'ir.actions.act_window',

    'view_mode': 'form',

    'res_model': 'mail.compose.message',

    'views': [(compose_form.id, 'form')],

    'view_id': compose_form.id,

    'target': 'new',

    'context': ctx,

}

This will open a wizard that allows the user to compose and send an email message. The message will be added to the mail thread associated with the specified record or model

-1
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
How to post automatically a message on the discussion thread ?
mail thread
Avatar
Avatar
Avatar
2
Juli 18
30495
[SOLVED] Extend mail thread view (v10) Gelöst
mail extend thread
Avatar
Avatar
1
Nov. 17
7248
Fetching e-mail from e-mail account
mail messages fatchmail
Avatar
Avatar
1
Juli 15
9871
How do I override the email template used in a child of mail.thread?
mail templates template thread
Avatar
0
Aug. 22
6645
why the mail and messages inbox suddenly becomes empty ?
mail messages empty inbox
Avatar
0
März 15
5434
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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