SlideShare a Scribd company logo
6
Most read
12
Most read
15
Most read
How to Add a Custom Button in Odoo 18 POS
Screen
Enterprise
Enterprise
In Odoo 18, customizing the POS interface lets businesses improve
user experience and operations. Adding a custom button with
JavaScript and XML allows specific actions like applying discounts or
accessing reports.
Introduction
Enterprise
● Add JavaScript and XML files to the src folder of your custom
module.
● Define button functionality in the JavaScript file.
● Specify the button's layout and placement in the XML file for the
Product and Payment screens.
● Update the manifest.py file to include these assets under the
point_of_sale.assets section.
● Ensure Odoo loads the custom buttons correctly for enhanced
user interaction and functionality.
Steps
Enterprise
Enterprise
● To implement a custom PopUp button on the POS screen
using the OWL framework, navigate to the static/src/xml
directory of your custom module and create a new XML file.
● In this file, define the structure of your button with the
following code:
Steps
Enterprise
Enterprise
● Include the JavaScript (JS) file after the button definition in the
XML file.
● Use the /** @odoo-module **/ declaration in the JS file to
specify the module and relevant screens.
● This annotation ensures proper linking of JavaScript
functionalities to the Odoo module.
Steps
Enterprise
Enterprise
This will add a new control button to the product screen .
Steps
Enterprise
Enterprise
A new control button, "Custom Button," is added under "Actions."
Clicking it will trigger an alert dialog.
A custom function called custom_button_click has been added, which
triggers an alert dialog when clicked.
Explanation
Enterprise
Enterprise
Now let us see how we can add a similar button to the payment screen
Steps
Enterprise
Enterprise
Enterprise
This adds a new button to payment screen with similar functionality
Steps
Enterprise
Enterprise
Clicking the button throws in the same alert dialog .
Steps
Enterprise
Enterprise
In conclusion, adding a custom button to the Odoo POS system
improves user experience and functionality. It allows developers to
create features that helps specific business needs, making the POS
interface more dynamic and efficient.
Conclusion
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

PPTX
How to Add a Custom Button in Pos Odoo 17
PPTX
How to modify_create components control buttons in Pos odoo.pptx
PPTX
How to Create a Popup in Odoo POS 17 - Odoo 17 Slides
PPTX
Revamped POS User Interface in Odoo 18 - Odoo Slides
PPTX
How to Create a Custom Screen in Odoo 17 POS
PPTX
How to Add Button in Chatter in Odoo 18 - Odoo Slides
DOCX
How To Add A Custom Button To The Chatter In Odoo 18 ?
PDF
Odoo POS Module Development: Complete Setup Guide
How to Add a Custom Button in Pos Odoo 17
How to modify_create components control buttons in Pos odoo.pptx
How to Create a Popup in Odoo POS 17 - Odoo 17 Slides
Revamped POS User Interface in Odoo 18 - Odoo Slides
How to Create a Custom Screen in Odoo 17 POS
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How To Add A Custom Button To The Chatter In Odoo 18 ?
Odoo POS Module Development: Complete Setup Guide

Similar to How to Add a Custom Button in Odoo 18 POS Screen (10)

PPTX
How to Customize POS Receipts in the Odoo 17
PPTX
How to hide the buttons on the POS screen in Odoo 17
PPTX
How to Render Dynamic Data using RPC call in Odoo 17 POS
PPTX
How to Create & Manage a New User Menu in Odoo 18
PPTX
How to Create Action Type & Object Type Button in Odoo 17
PDF
Step-by-Step Guide to Customizing Odoo Modules
PPTX
How to Manage Amounts in Local Currency in Odoo 18 Purchase
PPTX
Latest Features in Odoo 18 - Odoo slides
PDF
Adding custom ui controls to your application (1)
PPTX
How to configure the retail shop in Odoo 17 Point of Sale
How to Customize POS Receipts in the Odoo 17
How to hide the buttons on the POS screen in Odoo 17
How to Render Dynamic Data using RPC call in Odoo 17 POS
How to Create & Manage a New User Menu in Odoo 18
How to Create Action Type & Object Type Button in Odoo 17
Step-by-Step Guide to Customizing Odoo Modules
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Latest Features in Odoo 18 - Odoo slides
Adding custom ui controls to your application (1)
How to configure the retail shop in Odoo 17 Point of Sale
Ad

More from Celine George (20)

PPTX
How to Implement OWL Notification Service in Odoo 18
PPTX
Tracking Profit Margins in Sales Orders with Odoo 18
PPTX
How to Configure Outgoing Shipment in 3 Steps Using Odoo 18
PPTX
How to Configure Outgoing Shipment in 1 Step Using Odoo 18.pptx
PPTX
How to Configure Outgoing Shipment in 2 Steps Using Odoo 18
PPTX
How to Add New Applicants in Odoo 18 Recruitment
PPTX
How to Analyze the Recruitment Process in Odoo 18 Recruitment
PPTX
How to Manage Referral Reporting in Odoo 18 Referrals
PPTX
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PPTX
How to Manage Bill Control Policy in Odoo 18
PPTX
How to Manage Loyalty Points in Odoo 18 Sales
PPTX
Odoo 18 Sales_ Managing Quotation Validity
PPTX
How to Manage Global Discount in Odoo 18 POS
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
How to Implement OWL Notification Service in Odoo 18
Tracking Profit Margins in Sales Orders with Odoo 18
How to Configure Outgoing Shipment in 3 Steps Using Odoo 18
How to Configure Outgoing Shipment in 1 Step Using Odoo 18.pptx
How to Configure Outgoing Shipment in 2 Steps Using Odoo 18
How to Add New Applicants in Odoo 18 Recruitment
How to Analyze the Recruitment Process in Odoo 18 Recruitment
How to Manage Referral Reporting in Odoo 18 Referrals
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
Revamp in MTO Odoo 18 Inventory - Odoo Slides
How to Manage Starshipit in Odoo 18 - Odoo Slides
How to Manage Bill Control Policy in Odoo 18
How to Manage Loyalty Points in Odoo 18 Sales
Odoo 18 Sales_ Managing Quotation Validity
How to Manage Global Discount in Odoo 18 POS
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Tips Management in Odoo 18 POS - Odoo Slides
How to Close Subscription in Odoo 18 - Odoo Slides
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
How to Track Skills & Contracts Using Odoo 18 Employee
Ad

Recently uploaded (20)

PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
Cell Structure & Organelles in detailed.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Complications of Minimal Access Surgery at WLH
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Trump Administration's workforce development strategy
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Weekly quiz Compilation Jan -July 25.pdf
Anesthesia in Laparoscopic Surgery in India
Yogi Goddess Pres Conference Studio Updates
Cell Structure & Organelles in detailed.
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial diseases, their pathogenesis and prophylaxis
Orientation - ARALprogram of Deped to the Parents.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
VCE English Exam - Section C Student Revision Booklet
Complications of Minimal Access Surgery at WLH
O7-L3 Supply Chain Operations - ICLT Program
Trump Administration's workforce development strategy
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

How to Add a Custom Button in Odoo 18 POS Screen

  • 1. How to Add a Custom Button in Odoo 18 POS Screen Enterprise
  • 2. Enterprise In Odoo 18, customizing the POS interface lets businesses improve user experience and operations. Adding a custom button with JavaScript and XML allows specific actions like applying discounts or accessing reports. Introduction
  • 3. Enterprise ● Add JavaScript and XML files to the src folder of your custom module. ● Define button functionality in the JavaScript file. ● Specify the button's layout and placement in the XML file for the Product and Payment screens. ● Update the manifest.py file to include these assets under the point_of_sale.assets section. ● Ensure Odoo loads the custom buttons correctly for enhanced user interaction and functionality. Steps
  • 5. Enterprise ● To implement a custom PopUp button on the POS screen using the OWL framework, navigate to the static/src/xml directory of your custom module and create a new XML file. ● In this file, define the structure of your button with the following code: Steps
  • 7. Enterprise ● Include the JavaScript (JS) file after the button definition in the XML file. ● Use the /** @odoo-module **/ declaration in the JS file to specify the module and relevant screens. ● This annotation ensures proper linking of JavaScript functionalities to the Odoo module. Steps
  • 9. Enterprise This will add a new control button to the product screen . Steps
  • 11. Enterprise A new control button, "Custom Button," is added under "Actions." Clicking it will trigger an alert dialog. A custom function called custom_button_click has been added, which triggers an alert dialog when clicked. Explanation
  • 13. Enterprise Now let us see how we can add a similar button to the payment screen Steps
  • 16. Enterprise This adds a new button to payment screen with similar functionality Steps
  • 18. Enterprise Clicking the button throws in the same alert dialog . Steps
  • 20. Enterprise In conclusion, adding a custom button to the Odoo POS system improves user experience and functionality. It allows developers to create features that helps specific business needs, making the POS interface more dynamic and efficient. Conclusion
  • 21. 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