Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
mailmailingchattermail_threadmail.message
9757 Prikazi
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
Opusti
foo
Avtor

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!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Changing a variable in mail_thread.py
mail mail_thread mail.message v15 Git
Avatar
0
dec. 23
2720
Action server - Send Email doubt
mail template mail_thread mail.message odoov10
Avatar
Avatar
2
avg. 19
4056
Add Events in Mail Chatter Odoo 10 Solved
mail chatter mail_thread odoo odoo10
Avatar
1
nov. 17
5405
Huge mail.mail tables - why?
mail mailing
Avatar
0
feb. 24
2817
How to show message_type = notification in a portal chatter? Solved
chatter mail.message
Avatar
Avatar
1
sep. 21
7745
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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