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
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Tutorial
  3. Chatter Tutorial - Learn Chatter Functionalities v 18.0
  4. Sales Conditions FAQ

Chatter Tutorial - Learn Chatter Functionalities

by ERP Labz http://erplabz.com
Odoo

$ 2.31

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 422
Technical Name erpl_chatter_tutorial
LicenseOPL-1
Websitehttp://erplabz.com
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 422
Technical Name erpl_chatter_tutorial
LicenseOPL-1
Websitehttp://erplabz.com
Versions 18.0 19.0
  • Description
  • License
Chatter Tutorial Banner

🎓 Chatter Tutorial - Learn Chatter Functionalities

A comprehensive tutorial module to master Odoo's chatter integration with practical examples and inline documentation

👨‍💻 Developed by ERP Labz | erplabz.com

📚 What is This Module?

This is a complete tutorial module designed to teach developers how to implement Odoo's powerful chatter functionalities in their custom modules. With comprehensive inline documentation and working examples, you'll learn everything about messages, activities, and followers!

✨ Key Features

💬 Complete Chatter Integration

Learn how to add full chatter support with mail.thread and mail.activity.mixin inheritance

📝 Internal Messages

Discover how to create internal notes that are only visible to internal users

📨 Regular Messages

Master posting regular messages that notify all followers and can trigger emails

📅 Activity Scheduling

Learn to schedule activities programmatically with different types and deadlines

👥 Follower Management

Understand how the follower system works and how to manage subscribers

🔍 Field Tracking

Implement automatic change tracking on fields with the tracking parameter

📦 What's Included

  • Contact Notes Model: A complete example model with full chatter integration
  • Demo Buttons: Interactive buttons showing how to create messages from Python code
  • Comprehensive Views: Tree, Form, Kanban, and Search views with best practices
  • Inline Documentation: Extensive code comments explaining every aspect
  • Working Examples: Real methods demonstrating message_post() and activity_schedule()
  • Tutorial Page: Dedicated tab in the form view with learning resources

🎯 Learning Objectives

After installing and exploring this module, you'll be able to:

  • Add chatter to any custom model using mail.thread inheritance
  • Implement activity scheduling with mail.activity.mixin
  • Create internal messages vs regular messages from Python code
  • Schedule activities programmatically with custom parameters
  • Enable field tracking to log changes automatically
  • Structure form views properly with chatter widgets
  • Manage followers and understand notification systems

🚀 How to Use

  1. Install the Module: Install erpl_chatter_tutorial from Apps menu
  2. Open the App: Navigate to "Chatter Tutorial" application
  3. Create a Contact Note: Click "New" to create your first contact note
  4. Explore Chatter: Scroll down to see the chatter section with followers, activities, and messages
  5. Try Demo Buttons: Go to the "Tutorial - Chatter Demo" tab and click the action buttons
  6. Review the Code: Check the source code in models/contact_note.py and views/contact_note_views.xml

👨‍💻 Code Examples

Creating an Internal Message

def action_send_internal_message(self):
    """Post an internal message (note)"""
    for record in self:
        record.message_post(
            body="This is an internal message!",
            message_type='comment',
            subtype_xmlid='mail.mt_note',  # Internal note
        )
    return True

Scheduling an Activity

def action_create_activity(self):
    """Schedule a follow-up activity"""
    for record in self:
        activity_type = self.env.ref('mail.mail_activity_data_todo')
        record.activity_schedule(
            activity_type_id=activity_type.id,
            summary='Follow-up on note',
            note='Activity created from code',
            user_id=record.user_id.id,
            date_deadline=fields.Date.today() + timedelta(days=7)
        )
    return True

Form View with Chatter

<form string="Contact Note">
    <sheet>
        <!-- Your form fields here -->
    </sheet>
    
    <!-- Chatter Section -->
    <div class="oe_chatter">
        <field name="message_follower_ids" widget="mail_followers"/>
        <field name="activity_ids" widget="mail_activity"/>
        <field name="message_ids" widget="mail_thread"/>
    </div>
</form>

📋 Technical Details

  • Module Name: erpl_chatter_tutorial
  • Version: 19.0.1.0.0
  • Category: Tutorial
  • Dependencies: base, mail
  • License: OPL-1
  • Odoo Version: 19.0+

🎓 Models Included

contact.note

Main tutorial model demonstrating chatter integration with:

  • mail.thread - Provides messaging and follower features
  • mail.activity.mixin - Adds activity scheduling capabilities
  • Multiple field types with tracking enabled
  • Methods for creating messages and activities programmatically
  • State management with chatter notifications

contact.note.tag

Simple tag model for categorizing notes (demonstrates many2many relations)

💡 Best Practices Demonstrated

  • Proper model inheritance for chatter support
  • Using tracking=True for automatic change logging
  • Correct usage of message_post() with different subtypes
  • Activity scheduling with proper parameters
  • Structured form views with chatter section
  • Comprehensive inline code documentation
  • Security access rights configuration

⚠️ Important Notes

  • This module is for educational purposes to learn chatter implementation
  • All code includes extensive inline comments for learning
  • Review the source code to understand how each feature works
  • Test the demo buttons to see chatter in action

📖 Documentation

The module includes comprehensive documentation in the code:

  • models/contact_note.py: Detailed docstrings explaining each method and field
  • views/contact_note_views.xml: XML comments explaining view structure and widgets
  • Tutorial Tab: In-app documentation with usage instructions

🔧 Installation

  1. Download or clone this module to your Odoo addons directory
  2. Update the apps list in Odoo
  3. Search for "Chatter Tutorial" in the Apps menu
  4. Click Install
  5. Navigate to the "Chatter Tutorial" application to start learning!

🆘 Support & Contact

This module is developed and maintained by ERP Labz. For support, customization, or custom Odoo development services, please contact us:

  • Website: erplabz.com
  • Company: ERP Labz

📜 License

This module is licensed under OPL-1 (Odoo Proprietary License v1.0).

🎉 Ready to Master Chatter?

Install this module now and explore all the examples! The best way to learn is by experimenting with the working code and reading the comprehensive inline documentation.

Happy Learning! 🚀

Developed by ERP Labz

Professional Odoo Development & Customization Services

🌐 erplabz.com

© 2024 ERP Labz. All rights reserved. | License: OPL-1 | Currency: EUR

Contact Us

For support, questions, or feature requests, please contact us at sales.erplabz@gmail.com

Visit our website: erplabz.com

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
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

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