際際滷

際際滷Share a Scribd company logo
How to Count Records Using
search_count in Odoo 17
Enterprise
Introduction
Enterprise
In most of the Odoo form views, we can see smart buttons with
the count of related records.
So in this slide, lets check how we can create such smart buttons
in our custom modules.
Here in this slide, we are using a custom insurance module for
demonstration.
Enterprise
We are using search_count for showing the count of partners
who have the insurance.
Firstly, we need to add a new field to store the count in the
model.
Enterprise
Then we can add the view for the field insurance_count.
Enterprise
Next we are adding the compute function for computing the
count of partners and the action for the smart button
partners.
Enterprise
After adding these code snippets, we can see the smart
button will appear in the insurance form view.
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

More Related Content

Similar to How to Count Records Using search_count in Odoo 17 (20)

New Employee Login Screen in Odoo 18 POS
New Employee Login Screen in Odoo 18 POSNew Employee Login Screen in Odoo 18 POS
New Employee Login Screen in Odoo 18 POS
Celine George
How to Add Search Feature in Portal in Odoo 17
How to Add Search Feature in Portal in Odoo 17How to Add Search Feature in Portal in Odoo 17
How to Add Search Feature in Portal in Odoo 17
Celine George
How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17
How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17
How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17
Celine George
Generate a Code on Ticket in POS Odoo 17
Generate a Code on Ticket in  POS Odoo 17Generate a Code on Ticket in  POS Odoo 17
Generate a Code on Ticket in POS Odoo 17
Celine George
Customer LOT_Serial Number Report in Odoo 18
Customer LOT_Serial Number Report in Odoo 18Customer LOT_Serial Number Report in Odoo 18
Customer LOT_Serial Number Report in Odoo 18
Celine George
How to Empty a Many2Many Field in Odoo 17
How to Empty a Many2Many Field in Odoo 17How to Empty a Many2Many Field in Odoo 17
How to Empty a Many2Many Field in Odoo 17
Celine George
How to hide the buttons on the POS screen in Odoo 17
How to hide the buttons on the POS screen in Odoo 17How to hide the buttons on the POS screen in Odoo 17
How to hide the buttons on the POS screen in Odoo 17
Celine George
Allocation of invoice discounts in Odoo 17
Allocation of invoice discounts in Odoo 17Allocation of invoice discounts in Odoo 17
Allocation of invoice discounts in Odoo 17
Celine George
How to Generate Customer Statements Report in Odoo 18
How to Generate Customer Statements Report in Odoo 18How to Generate Customer Statements Report in Odoo 18
How to Generate Customer Statements Report in Odoo 18
Celine George
HTML Editor in Odoo 18 - Odoo 18 Technical 際際滷s
HTML Editor in Odoo 18 - Odoo 18 Technical 際際滷sHTML Editor in Odoo 18 - Odoo 18 Technical 際際滷s
HTML Editor in Odoo 18 - Odoo 18 Technical 際際滷s
Celine George
How to Call Python Function from Menu Item
How to Call Python Function from Menu ItemHow to Call Python Function from Menu Item
How to Call Python Function from Menu Item
Celine George
Insert pipeline into article_ spreadsheeteet.pptx
Insert pipeline into article_ spreadsheeteet.pptxInsert pipeline into article_ spreadsheeteet.pptx
Insert pipeline into article_ spreadsheeteet.pptx
Celine George
How to Manage Comparison Price in Odoo 18 Website
How to Manage Comparison Price in Odoo 18 WebsiteHow to Manage Comparison Price in Odoo 18 Website
How to Manage Comparison Price in Odoo 18 Website
Celine George
How to Configure Pricer Store in Odoo 18 POS
How to Configure Pricer Store in Odoo 18 POSHow to Configure Pricer Store in Odoo 18 POS
How to Configure Pricer Store in Odoo 18 POS
Celine George
How to Manage Margin & Cost in Odoo 17 POS
How to Manage Margin & Cost in Odoo 17 POSHow to Manage Margin & Cost in Odoo 17 POS
How to Manage Margin & Cost in Odoo 17 POS
Celine George
How to Register Payment Against Draft Invoice in Odoo 18
How to Register Payment Against Draft Invoice in Odoo 18How to Register Payment Against Draft Invoice in Odoo 18
How to Register Payment Against Draft Invoice in Odoo 18
Celine George
How to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing AppHow to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing App
Celine George
How to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing AppHow to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing App
Celine George
How to Use Log Access Attribute in Odoo 17
How to Use Log Access Attribute in Odoo 17How to Use Log Access Attribute in Odoo 17
How to Use Log Access Attribute in Odoo 17
Celine George
Odoo v13 Features List | Odoo 13 Guide | Kanak Infosystems
Odoo v13 Features List | Odoo 13 Guide | Kanak InfosystemsOdoo v13 Features List | Odoo 13 Guide | Kanak Infosystems
Odoo v13 Features List | Odoo 13 Guide | Kanak Infosystems
Kanakinfosystems LLP
New Employee Login Screen in Odoo 18 POS
New Employee Login Screen in Odoo 18 POSNew Employee Login Screen in Odoo 18 POS
New Employee Login Screen in Odoo 18 POS
Celine George
How to Add Search Feature in Portal in Odoo 17
How to Add Search Feature in Portal in Odoo 17How to Add Search Feature in Portal in Odoo 17
How to Add Search Feature in Portal in Odoo 17
Celine George
How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17
How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17
How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17
Celine George
Generate a Code on Ticket in POS Odoo 17
Generate a Code on Ticket in  POS Odoo 17Generate a Code on Ticket in  POS Odoo 17
Generate a Code on Ticket in POS Odoo 17
Celine George
Customer LOT_Serial Number Report in Odoo 18
Customer LOT_Serial Number Report in Odoo 18Customer LOT_Serial Number Report in Odoo 18
Customer LOT_Serial Number Report in Odoo 18
Celine George
How to Empty a Many2Many Field in Odoo 17
How to Empty a Many2Many Field in Odoo 17How to Empty a Many2Many Field in Odoo 17
How to Empty a Many2Many Field in Odoo 17
Celine George
How to hide the buttons on the POS screen in Odoo 17
How to hide the buttons on the POS screen in Odoo 17How to hide the buttons on the POS screen in Odoo 17
How to hide the buttons on the POS screen in Odoo 17
Celine George
Allocation of invoice discounts in Odoo 17
Allocation of invoice discounts in Odoo 17Allocation of invoice discounts in Odoo 17
Allocation of invoice discounts in Odoo 17
Celine George
How to Generate Customer Statements Report in Odoo 18
How to Generate Customer Statements Report in Odoo 18How to Generate Customer Statements Report in Odoo 18
How to Generate Customer Statements Report in Odoo 18
Celine George
HTML Editor in Odoo 18 - Odoo 18 Technical 際際滷s
HTML Editor in Odoo 18 - Odoo 18 Technical 際際滷sHTML Editor in Odoo 18 - Odoo 18 Technical 際際滷s
HTML Editor in Odoo 18 - Odoo 18 Technical 際際滷s
Celine George
How to Call Python Function from Menu Item
How to Call Python Function from Menu ItemHow to Call Python Function from Menu Item
How to Call Python Function from Menu Item
Celine George
Insert pipeline into article_ spreadsheeteet.pptx
Insert pipeline into article_ spreadsheeteet.pptxInsert pipeline into article_ spreadsheeteet.pptx
Insert pipeline into article_ spreadsheeteet.pptx
Celine George
How to Manage Comparison Price in Odoo 18 Website
How to Manage Comparison Price in Odoo 18 WebsiteHow to Manage Comparison Price in Odoo 18 Website
How to Manage Comparison Price in Odoo 18 Website
Celine George
How to Configure Pricer Store in Odoo 18 POS
How to Configure Pricer Store in Odoo 18 POSHow to Configure Pricer Store in Odoo 18 POS
How to Configure Pricer Store in Odoo 18 POS
Celine George
How to Manage Margin & Cost in Odoo 17 POS
How to Manage Margin & Cost in Odoo 17 POSHow to Manage Margin & Cost in Odoo 17 POS
How to Manage Margin & Cost in Odoo 17 POS
Celine George
How to Register Payment Against Draft Invoice in Odoo 18
How to Register Payment Against Draft Invoice in Odoo 18How to Register Payment Against Draft Invoice in Odoo 18
How to Register Payment Against Draft Invoice in Odoo 18
Celine George
How to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing AppHow to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing App
Celine George
How to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing AppHow to Configure Subcontracting in Odoo 17 Manufacturing App
How to Configure Subcontracting in Odoo 17 Manufacturing App
Celine George
How to Use Log Access Attribute in Odoo 17
How to Use Log Access Attribute in Odoo 17How to Use Log Access Attribute in Odoo 17
How to Use Log Access Attribute in Odoo 17
Celine George
Odoo v13 Features List | Odoo 13 Guide | Kanak Infosystems
Odoo v13 Features List | Odoo 13 Guide | Kanak InfosystemsOdoo v13 Features List | Odoo 13 Guide | Kanak Infosystems
Odoo v13 Features List | Odoo 13 Guide | Kanak Infosystems
Kanakinfosystems LLP

More from Celine George (20)

How to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 AccountingHow to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 Accounting
Celine George
How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17
Celine George
How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17
Celine George
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷sField Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Celine George
How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17
Celine George
How to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of SaleHow to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of Sale
Celine George
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18
Celine George
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷sPurchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Celine George
Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17
Celine George
How to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 WebsiteHow to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 Website
Celine George
Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17
Celine George
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷sRecruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Celine George
How to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting AppHow to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting App
Celine George
How to Install Odoo 18 with Pycharm - Odoo 18 際際滷s
How to Install Odoo 18 with Pycharm - Odoo 18 際際滷sHow to Install Odoo 18 with Pycharm - Odoo 18 際際滷s
How to Install Odoo 18 with Pycharm - Odoo 18 際際滷s
Celine George
How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18
Celine George
How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18
Celine George
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 SalesHow to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
Celine George
URLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷sURLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷s
Celine George
How to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 AccountingHow to setup journals in Odoo 17 Accounting
How to setup journals in Odoo 17 Accounting
Celine George
How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17How to handle the storage categories of the locations in Odoo 17
How to handle the storage categories of the locations in Odoo 17
Celine George
How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17How to Identify the Margin from the Sales Orders using Odoo 17
How to Identify the Margin from the Sales Orders using Odoo 17
Celine George
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷sField Parameters in Odoo 18 - Odoo 18 際際滷s
Field Parameters in Odoo 18 - Odoo 18 際際滷s
Celine George
How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17How to Invoice Shipping Cost to Customer in Odoo 17
How to Invoice Shipping Cost to Customer in Odoo 17
Celine George
How to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of SaleHow to configure the retail shop in Odoo 17 Point of Sale
How to configure the retail shop in Odoo 17 Point of Sale
Celine George
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18Analysis of Conf File Parameters in the Odoo 18
Analysis of Conf File Parameters in the Odoo 18
Celine George
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷sPurchase Analysis in Odoo 17 - Odoo 際際滷s
Purchase Analysis in Odoo 17 - Odoo 際際滷s
Celine George
Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17Analysis of Conf File Parameters in Odoo 17
Analysis of Conf File Parameters in Odoo 17
Celine George
How to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 WebsiteHow to Manage Check Out Process in Odoo 17 Website
How to Manage Check Out Process in Odoo 17 Website
Celine George
Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17Managing Online Signature and Payment with Odoo 17
Managing Online Signature and Payment with Odoo 17
Celine George
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷sRecruitment in the Odoo 17 - Odoo 17 際際滷s
Recruitment in the Odoo 17 - Odoo 17 際際滷s
Celine George
How to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting AppHow to Setup Company Data in Odoo 17 Accounting App
How to Setup Company Data in Odoo 17 Accounting App
Celine George
How to Install Odoo 18 with Pycharm - Odoo 18 際際滷s
How to Install Odoo 18 with Pycharm - Odoo 18 際際滷sHow to Install Odoo 18 with Pycharm - Odoo 18 際際滷s
How to Install Odoo 18 with Pycharm - Odoo 18 際際滷s
Celine George
How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18How to Manage Purchase Order Approval in Odoo 18
How to Manage Purchase Order Approval in Odoo 18
Celine George
How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18How to Configure Outgoing and Incoming mail servers in Odoo 18
How to Configure Outgoing and Incoming mail servers in Odoo 18
Celine George
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 SalesHow to Grant Discounts in Sale Order Lines in Odoo 18 Sales
How to Grant Discounts in Sale Order Lines in Odoo 18 Sales
Celine George
URLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷sURLS and routing in odoo 18 - Odoo 際際滷s
URLS and routing in odoo 18 - Odoo 際際滷s
Celine George

Recently uploaded (20)

YSPH VMOC Special Report - Measles Outbreak Southwest US 4-6-2025 ver 5.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-6-2025 ver 5.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-6-2025 ver 5.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-6-2025 ver 5.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptxBIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
maniramkumar
technology in banking ppt FOR E-CONTENT -2.ppt
technology in banking ppt  FOR E-CONTENT -2.ppttechnology in banking ppt  FOR E-CONTENT -2.ppt
technology in banking ppt FOR E-CONTENT -2.ppt
HARIHARAN A
NC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-BeingNC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-Being
Mebane Rash
BUSINESS QUIZ | THE QUIZ CLUB OF PSGCAS | 17TH MARCH 2025 .pptx
BUSINESS QUIZ | THE QUIZ CLUB OF PSGCAS | 17TH MARCH 2025 .pptxBUSINESS QUIZ | THE QUIZ CLUB OF PSGCAS | 17TH MARCH 2025 .pptx
BUSINESS QUIZ | THE QUIZ CLUB OF PSGCAS | 17TH MARCH 2025 .pptx
Quiz Club of PSG College of Arts & Science
Pushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptx
Pushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptxPushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptx
Pushyabhuti Dynesty Vardhan Vamsha Early Rulers.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx
Vivek Bhattji
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation FourthStrategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
keileyrazawi
2. ES: Application of Number: Units of measure & conversions
2. ES: Application of Number: Units of measure & conversions2. ES: Application of Number: Units of measure & conversions
2. ES: Application of Number: Units of measure & conversions
leigh441292
A-Z GENERAL QUIZ | THE QUIZ CLUB OF PSGCAS | 14TH MARCH 2025.pptx
A-Z GENERAL QUIZ | THE QUIZ CLUB OF PSGCAS | 14TH MARCH 2025.pptxA-Z GENERAL QUIZ | THE QUIZ CLUB OF PSGCAS | 14TH MARCH 2025.pptx
A-Z GENERAL QUIZ | THE QUIZ CLUB OF PSGCAS | 14TH MARCH 2025.pptx
Quiz Club of PSG College of Arts & Science
Using social media to learn from conferences
Using social media to learn from conferencesUsing social media to learn from conferences
Using social media to learn from conferences
Sue Beckingham
Using GenAI for Universal Design for Learning
Using GenAI for Universal Design for LearningUsing GenAI for Universal Design for Learning
Using GenAI for Universal Design for Learning
Damian T. Gordon
The Effectiveness of Manual Therapies on the Thoracic.pptx
The Effectiveness of Manual Therapies on the Thoracic.pptxThe Effectiveness of Manual Therapies on the Thoracic.pptx
The Effectiveness of Manual Therapies on the Thoracic.pptx
SamarHosni3
Test Bank Pharmacology 3rd Edition Brenner Stevens
Test Bank Pharmacology 3rd Edition Brenner  StevensTest Bank Pharmacology 3rd Edition Brenner  Stevens
Test Bank Pharmacology 3rd Edition Brenner Stevens
evakimworwa38
Anti-Protozoal Agents.pptx by Mrs. Manjushri P. Dabhade
Anti-Protozoal Agents.pptx by Mrs. Manjushri P. DabhadeAnti-Protozoal Agents.pptx by Mrs. Manjushri P. Dabhade
Anti-Protozoal Agents.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
A Biodiction : A Unit of Dr. Divya Sharma
GenAI for Trading and Asset Management by Ernest Chan
GenAI for Trading and Asset Management by Ernest ChanGenAI for Trading and Asset Management by Ernest Chan
GenAI for Trading and Asset Management by Ernest Chan
QuantInsti
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. DabhadeCombinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMCAction of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
jaspervedamvemavarap
Introduction to Drug Design.pptx by Mrs. Manjushri P. Dabhade
Introduction to Drug Design.pptx by Mrs. Manjushri P. DabhadeIntroduction to Drug Design.pptx by Mrs. Manjushri P. Dabhade
Introduction to Drug Design.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptxBIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
BIOPHARMACEUTICS AND PHARMACOKINETICS(BP604T) - Copy (3).pptx
maniramkumar
technology in banking ppt FOR E-CONTENT -2.ppt
technology in banking ppt  FOR E-CONTENT -2.ppttechnology in banking ppt  FOR E-CONTENT -2.ppt
technology in banking ppt FOR E-CONTENT -2.ppt
HARIHARAN A
NC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-BeingNC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-Being
Mebane Rash
10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx
Vivek Bhattji
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation FourthStrategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
keileyrazawi
2. ES: Application of Number: Units of measure & conversions
2. ES: Application of Number: Units of measure & conversions2. ES: Application of Number: Units of measure & conversions
2. ES: Application of Number: Units of measure & conversions
leigh441292
Using social media to learn from conferences
Using social media to learn from conferencesUsing social media to learn from conferences
Using social media to learn from conferences
Sue Beckingham
Using GenAI for Universal Design for Learning
Using GenAI for Universal Design for LearningUsing GenAI for Universal Design for Learning
Using GenAI for Universal Design for Learning
Damian T. Gordon
The Effectiveness of Manual Therapies on the Thoracic.pptx
The Effectiveness of Manual Therapies on the Thoracic.pptxThe Effectiveness of Manual Therapies on the Thoracic.pptx
The Effectiveness of Manual Therapies on the Thoracic.pptx
SamarHosni3
Test Bank Pharmacology 3rd Edition Brenner Stevens
Test Bank Pharmacology 3rd Edition Brenner  StevensTest Bank Pharmacology 3rd Edition Brenner  Stevens
Test Bank Pharmacology 3rd Edition Brenner Stevens
evakimworwa38
Anti-Protozoal Agents.pptx by Mrs. Manjushri P. Dabhade
Anti-Protozoal Agents.pptx by Mrs. Manjushri P. DabhadeAnti-Protozoal Agents.pptx by Mrs. Manjushri P. Dabhade
Anti-Protozoal Agents.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
Bioinformatics: History of Bioinformatics, Components of Bioinformatics, Geno...
A Biodiction : A Unit of Dr. Divya Sharma
GenAI for Trading and Asset Management by Ernest Chan
GenAI for Trading and Asset Management by Ernest ChanGenAI for Trading and Asset Management by Ernest Chan
GenAI for Trading and Asset Management by Ernest Chan
QuantInsti
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. DabhadeCombinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMCAction of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
jaspervedamvemavarap
Introduction to Drug Design.pptx by Mrs. Manjushri P. Dabhade
Introduction to Drug Design.pptx by Mrs. Manjushri P. DabhadeIntroduction to Drug Design.pptx by Mrs. Manjushri P. Dabhade
Introduction to Drug Design.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade

How to Count Records Using search_count in Odoo 17

  • 1. How to Count Records Using search_count in Odoo 17 Enterprise
  • 2. Introduction Enterprise In most of the Odoo form views, we can see smart buttons with the count of related records. So in this slide, lets check how we can create such smart buttons in our custom modules. Here in this slide, we are using a custom insurance module for demonstration.
  • 3. Enterprise We are using search_count for showing the count of partners who have the insurance. Firstly, we need to add a new field to store the count in the model.
  • 4. Enterprise Then we can add the view for the field insurance_count.
  • 5. Enterprise Next we are adding the compute function for computing the count of partners and the action for the smart button partners.
  • 6. Enterprise After adding these code snippets, we can see the smart button will appear in the insurance form view.
  • 7. 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