SlideShare a Scribd company logo
4
Most read
6
Most read
10
Most read
How to Customize POS
Receipts in the Odoo 17
Enterprise
Introduction
Enterprise
Shops and restaurants can run easily with the point of sale
module. POS receipts give the order information to customers.
By customizing the receipts we can provide order relevant
information and increase our brand values. This slide will provide
details of how we can customize the POS receipts in Odoo 17.
Enterprise
Modify XML Snippet
● For the customization of receipts, the first step is modify
the xml snippet of the POS receipt template.
● For that, first create an xml file inside static->src->xml
directory.
● For Example: we can add the customer name inside the
receipt.
● First inherit the OrderReceipt template from the
point_of_sale module .
● Then give the position inside the xpath tag for where we
need to add the customer name.
Enterprise
Enterprise
Create Javascript File
● To add the customer name into the receipt create a
javascript file inside static->src->js directory.
● First import the Order model and patch function from the
corresponding modules.
● Then inside the patch extend the function
export_for_printing. And assign partner value and add it
to the results.
● Then return the results. And the partner value can be
accessed in the xml file by giving
props.data.partner.name.
Enterprise
Enterprise
Add to Manifest
● Add both xml and js file paths inside the manifest. ie,
'assets': {
'point_of_sale._assets_pos': [
'custom_pos/static/src/**/*',
],
},
Enterprise
Output
● Then when choosing a customer on order and validating
the payment then on the receipts we can see the customer
name.
Enterprise
● In some cases we need to add custom fields to the receipts.
In this case, we have to use python code for achieving this.
● If the custom field is added on the model product.product.
Then we can inherit the model pos.session and add the
function as:-
Enterprise
class PosSessions(models.Model):
_inherit = 'pos.session'
def _loader_params_product_product(self):
result = super()._loader_params_product_product()
result['search_params']['fields'].append('your_custom_field')
return result
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
Report Actions In Odoo 17 - Odoo 17 Slides
PPTX
How to add Many2Many fields in odoo website form.pptx
PPTX
Customization of Odoo 17 Periodic Digest parameters from backend
PPTX
How to Add Barcode on PDF Report in Odoo 17
PPTX
How to Create & Manage a Dashboard Using OWL in Odoo 17
PPTX
How to Create a Custom Screen in Odoo 17 POS
PPTX
Client Actions In Odoo 17 - Odoo 17 Slides
PPTX
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Report Actions In Odoo 17 - Odoo 17 Slides
How to add Many2Many fields in odoo website form.pptx
Customization of Odoo 17 Periodic Digest parameters from backend
How to Add Barcode on PDF Report in Odoo 17
How to Create & Manage a Dashboard Using OWL in Odoo 17
How to Create a Custom Screen in Odoo 17 POS
Client Actions In Odoo 17 - Odoo 17 Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides

Similar to How to Customize POS Receipts in the Odoo 17 (20)

PPTX
URLs and Routing in the Odoo 17 Website App
PPTX
How to extend Order, Orderlines , PoS store and model definition in odoo 17 POS
PPTX
How to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
PPTX
How to Create an XLS Report in Odoo 17 - Odoo 17 Slides
PPTX
How To Extend Odoo Form View using js_class_
PDF
FDMEE script examples
PDF
FDMEE script examples
PPTX
How to perform product search based on a custom field from the PoS screen of ...
PPTX
E-Bazaar
PPTX
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
PPTX
Qweb Templates and Operations in Odoo 18
PPTX
Reporting - Printed (Pdf) Reports
PPTX
URLS and routing in odoo 18 - Odoo Slides
PPTX
How to Add a Custom Button in Odoo 18 POS Screen
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
PDF
SAP PI Sheet integration with DMS(Document Management System)
PPTX
Automation in the Odoo 17 ERP Studio Module
PPTX
Automation in the Odoo 17 ERP Studio Module
PDF
Integration with presta shop webinar
PPTX
How to Create & Configure Server Actions in the Odoo 18
URLs and Routing in the Odoo 17 Website App
How to extend Order, Orderlines , PoS store and model definition in odoo 17 POS
How to Load Custom Field to POS in Odoo 17 - Odoo 17 Slides
How to Create an XLS Report in Odoo 17 - Odoo 17 Slides
How To Extend Odoo Form View using js_class_
FDMEE script examples
FDMEE script examples
How to perform product search based on a custom field from the PoS screen of ...
E-Bazaar
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
Qweb Templates and Operations in Odoo 18
Reporting - Printed (Pdf) Reports
URLS and routing in odoo 18 - Odoo Slides
How to Add a Custom Button in Odoo 18 POS Screen
How to Create a PDF Report in Odoo 18 - Odoo Slides
SAP PI Sheet integration with DMS(Document Management System)
Automation in the Odoo 17 ERP Studio Module
Automation in the Odoo 17 ERP Studio Module
Integration with presta shop webinar
How to Create & Configure Server Actions in the Odoo 18
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)

PPTX
Institutional Correction lecture only . . .
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Pharma ospi slides which help in ospi learning
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Insiders guide to clinical Medicine.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Lesson notes of climatology university.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
Institutional Correction lecture only . . .
Final Presentation General Medicine 03-08-2024.pptx
Classroom Observation Tools for Teachers
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pharma ospi slides which help in ospi learning
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
O5-L3 Freight Transport Ops (International) V1.pdf
PPH.pptx obstetrics and gynecology in nursing
Microbial disease of the cardiovascular and lymphatic systems
Insiders guide to clinical Medicine.pdf
Complications of Minimal Access Surgery at WLH
Lesson notes of climatology university.
Sports Quiz easy sports quiz sports quiz
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Microbial diseases, their pathogenesis and prophylaxis
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
VCE English Exam - Section C Student Revision Booklet

How to Customize POS Receipts in the Odoo 17

  • 1. How to Customize POS Receipts in the Odoo 17 Enterprise
  • 2. Introduction Enterprise Shops and restaurants can run easily with the point of sale module. POS receipts give the order information to customers. By customizing the receipts we can provide order relevant information and increase our brand values. This slide will provide details of how we can customize the POS receipts in Odoo 17.
  • 3. Enterprise Modify XML Snippet ● For the customization of receipts, the first step is modify the xml snippet of the POS receipt template. ● For that, first create an xml file inside static->src->xml directory. ● For Example: we can add the customer name inside the receipt. ● First inherit the OrderReceipt template from the point_of_sale module . ● Then give the position inside the xpath tag for where we need to add the customer name.
  • 5. Enterprise Create Javascript File ● To add the customer name into the receipt create a javascript file inside static->src->js directory. ● First import the Order model and patch function from the corresponding modules. ● Then inside the patch extend the function export_for_printing. And assign partner value and add it to the results. ● Then return the results. And the partner value can be accessed in the xml file by giving props.data.partner.name.
  • 7. Enterprise Add to Manifest ● Add both xml and js file paths inside the manifest. ie, 'assets': { 'point_of_sale._assets_pos': [ 'custom_pos/static/src/**/*', ], },
  • 8. Enterprise Output ● Then when choosing a customer on order and validating the payment then on the receipts we can see the customer name.
  • 9. Enterprise ● In some cases we need to add custom fields to the receipts. In this case, we have to use python code for achieving this. ● If the custom field is added on the model product.product. Then we can inherit the model pos.session and add the function as:-
  • 10. Enterprise class PosSessions(models.Model): _inherit = 'pos.session' def _loader_params_product_product(self): result = super()._loader_params_product_product() result['search_params']['fields'].append('your_custom_field') return result
  • 11. 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