Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

How to forward e-mail into Odoo record to be automatically stored correctly in mail.message?

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
mailmailingchattermail_threadmail.message
9595 Visninger
Avatar
foo

Let's say we have Odoo User A (a user in res.users). Their e-mail is OdooUserA@gmail.com.

Let's say Random Customer 1, who may or may not be a res.partner / contact in Odoo, sends an e-mail directly to OdooUserA@gmail.com.

Odoo User gets this e-mail, they know it should be associated with a specific res.partner / crm.lead / project.task – or such. How can they forward this e-mail into Odoo and have it recognized? Specifically, recognized in chatter, as a mail.message, so it can appear underneath the proper record.

From what I can see, when Odoo sends an e-mail, it uses the following headers to know which model and which id to associate with:


X-Odoo-Objects: crm.lead-5962 

X-Odoo-db-uuid: 029017e4-1590-11e8-876a-705681c369f7


If I could send an actual e-mail to mymainodooaccount@gmail.com, and do something like this:  mymainodooaccount+crm.lead-193@gmail.com, then I could display this e-mail on the actual record in a view, and Odoo users know where to forward e-mails in this scenario. That would be ideal.

In actuality, we're using Google Apps, so we're using Google's SMTP server and POP with a single Odoo e-mail (eg. odoo@ourdomain.com). Odoo 11. Thank you – 

0
Avatar
Kassér
foo
Forfatter

After many, many hours on this: looks like I can inherit mail.thread and extend message_process. In there, I have these arguments:

```

@api.model

def message_process(self, model, message, custom_values=None,

save_original=False, strip_attachments=False,

thread_id=None):

```

I can pass a model (str) and thread_id (int) – this is considered a fallback. While I see it getting used in the logs, I don't see my message appear there. Been at this for days, would love any other feedback. Wondering if this is a bug with the fallback.

Calgavin Ltd.

Hi foo. Would be interested if you ever accomplished this and found an answer? We're having the same trouble.

Anderson David Martinez Vidal

Hello you can use this module for that https://apps.odoo.com/apps/modules/15.0/mail_to_record/
it uses the mail aliases to create rules for incoming emails and will try to find a record by name or email in the subject in format [Document Name] or [ID]

Lacey Dandy

Did either of you have any luck? (Calgavin or foo?)

I'd love to find a solution that skips the manually assigned [id] of the mail to record app above and just looks at the contact email (and ideally an alternate email if they have one). Or ideas where to next would be super appreciated if you ended up working with someone on this.

Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
Changing a variable in mail_thread.py
mail mail_thread mail.message v15 Git
Avatar
0
dec. 23
2616
Action server - Send Email doubt
mail template mail_thread mail.message odoov10
Avatar
Avatar
2
aug. 19
3979
Add Events in Mail Chatter Odoo 10 Løst
mail chatter mail_thread odoo odoo10
Avatar
1
nov. 17
5284
Huge mail.mail tables - why?
mail mailing
Avatar
0
feb. 24
2671
How to show message_type = notification in a portal chatter? Løst
chatter mail.message
Avatar
Avatar
1
sep. 21
7581
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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