How to Add Button in Chatter in Odoo 17 - Odoo 17 Slides
CelineGeorge1
805 views
16 slides
Aug 30, 2024
Slide 1 of 16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
About This Presentation
Odoo 17 Timesheet offers features to motivate employees and track their billing efficiency through bill rate targets and leaderboards. Bill Rate Target feature allows us to configure a target billing rate for each employee.
Size: 419.28 KB
Language: en
Added: Aug 30, 2024
Slides: 16 pages
Slide Content
How to Add Button in Chatter in Odoo 17 Enterprise
Introduction Enterpr ise This slide will explain Adding a Button to the Chatter in Odoo 17
Enterprise Chatter In Odoo, the "chatter" is a communication and collaboration feature embedded in various modules, enabling users to interact and share information within specific records. Typically located in the form view, the chatter allows users to add notes, send messages, and track discussions related to a particular record. The image below displays the chatter associated with the sale order model.
Enterprise
Enterprise Key Aspects of the Chatter in Odoo Messaging and Notes : Users can post messages and notes pertaining to a specific record, including general information, updates, or discussions. Attachments : Users can attach files and documents to the chatter, facilitating the sharing of additional information related to the record.
Enterprise Key Aspects of the Chatter in Odoo Followers : Users can follow a record to receive notifications about any updates or changes made to that record. Email Integration: The chatter often integrates with email, allowing users to send messages directly from the chatter interface. Log and History : The chatter maintains a log of all activities and changes related to the record, providing a comprehensive history of interactions.
Enterprise Adding a Button to the Chatter in Odoo 17 To add a new button to the chatter interface universally, we will extend the mail.Chatter template, setting the t-inherit-mode to extension. This adjustment ensures that a button labeled 'Calendar' is positioned before the activity icon across all chatter instances.
Enterprise This adds a "Calendar" button to the user interface as shown in the image below.
Enterprise
Enterprise JavaScript Code To implement the functionality for the 'Calendar' button, we need to patch the Chatter component and introduce the necessary function.
Enterprise This function utilizes the current model stored in this.props.threadModel and the corresponding record ID in this.props.threadId. With these values, it executes the logic and performs the necessary operations. Specifically, this method opens a form view for the model mail.activity, with the context containing the active record ID and model. By clicking the 'Calendar' button, the user can navigate to the page, as shown in the screenshot below.
Enterprise
Enterprise In Odoo, patching the chatter involves making adjustments or enhancements to the communication and activity feed linked with records. This process allows for customization and extension of the default chatter functionality to meet specific requirements or include additional features within the Odoo ERP system.
For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com