Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

How can we process incoming emails

Subscribe

Get notified when there's activity on this post

This question has been flagged
actionserveremailincoming
9 Replies
20140 Views
Avatar
Kurt Haselwimmer

I wish to send emails to odoo to change data in specified records of an existing model in the system. Is there any documentation on this subject or a clear example that shows how to process a general purpose emal? As I wish to run on odoo-on-saas I cannot write a custom module but would be obliged to process the incoming email and update my data purely via server actions.

There are one or two posts on this system but these are out of date (the crm.lead description field is no longer written by the incoming email for example). Also there is no clear indication of whether a new record MUST be created - I have tried leaving this field blank and setting it to create a record of type message and neither seems to work.

0
Avatar
Discard
Avatar
Hargos
Best Answer

Hi,

Did you by any chance find a way to process incoming email since 2013?


0
Avatar
Discard
Avatar
Hans Martens
Best Answer

Hi Kurt,

Did you ever find a working example on how to propagate fields in the body of an incoming emal to certain records of an Odoo model? Even two years later I can only find the examples you allready mentioned, which are no longer relevant for current versions of Odoo. 

Thanks in advance!

0
Avatar
Discard
Avatar
Anders Wallenquist
Best Answer

Create an imap catchall-account for your domain and configure incomming mail for this account (settings -> General Settings). Odoo will create mail-aliases for most of you objects (settings -> Email -> Alias), you can also add you own aliases.

You can also add more incomming mail accounts and administer "Actions to Perform on Incoming Mails".

 

 

0
Avatar
Discard
Kurt Haselwimmer
Author

Anders thanks for the comment but this does not explain how to extract and act upon data extracted from the body of the email. This requires a server action - the previous posts that touch on this subject are clearly out of date now.

Anders Wallenquist

You can add server actions in python-code for example: if context.get('active_model') == 'crm.lead' and context.get('active_ids'): self.case_mark_lost(cr, uid, context['active_ids'], context=context)

Kurt Haselwimmer
Author

A worked example would help me and many other people I think. The existing semi-examples posted on odoo help have typos and also no longer work. 1 Its not clear whether a database record always needs to be created - eg if we just want to update, say a status field in a delivery order we don't need a new lead or delivery order to be created. 2 If we are not creating a record in one of the models how do we access the fields (subject, body etc) from the incoming email message. I tried creating message records but this does not seem to work (on saas5). If this can be demonstrated then it provides a useful mechanism for synchronisation with other online systems.

Avatar
Med Said BARA
Best Answer

Very interesting question.

But, how to parse the email content ?

Related question: https://www.odoo.com/forum/help-1/question/customize-the-auto-lead-creation-through-incoming-emails-272

                              http://stackoverflow.com/questions/17838142/using-python-to-parse-email-for-action-server

Some links:

                            https://zapier.com/zapbook/email-parser/openerp/

                            https://docs.python.org/2/library/email.parser.html

Can you tell me what you think about : https://github.com/Smile-SA/odoo_addons/tree/7.0/smile_action_trigger

                           

0
Avatar
Discard
Kurt Haselwimmer
Author

The first ref 1) is the classic one on this forum - this didn't work because of the typos shown in 2. 2) no longer works because the email body is no longer put into the crm.lead description field when the email is received (this change was uploaded to github around feb 2013) 3) is a zapier reference. I assume that this requires a custom module in odoo and so is therefore incompatible with odoo-on-saas I have not come across 5) before - but it too looks like it would require a custom module to be installed in odoo - again making it incompatible with odoo-on-saas. I am sure that this must be possible with odoo server actions - it is just knowing how to get access to the email body content. After that we can parse that content and do pretty much whatever we would like with server actions.

Ben Bernard

I think the email can be accessed via mail.mesagge model. The problem is how to trigger the server actions object?

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

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

Sign up
Related Posts Replies Views Activity
How to create server action incoming in human resources?
action server email
Avatar
Avatar
2
Mar 15
7835
How to create server action incoming in human resources?
action server email
Avatar
0
Mar 15
4324
Action from incoming e-mail Solved
server email fetchmail incoming
Avatar
Avatar
Avatar
Avatar
Avatar
4
Dec 20
14405
difference between server actions and client actions in Odoo? Solved
action server
Avatar
Avatar
Avatar
Avatar
3
Jun 23
13257
Can someone explain the full procedure to configure incoming mail? Solved
email incoming
Avatar
Avatar
Avatar
Avatar
Avatar
7
May 22
25697
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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