際際滷

際際滷Share a Scribd company logo
How to extend Order,
Orderliness , PoS store and
model definition in odoo 17 POS
Enterprise
Introduction
Enterprise
This slide well discuss how to extend order, orderlines , PoS store
and model definition in odoo 17 POS. In Odoo 17, extending the
Point of Sale (PoS) involves customizing core components such
as orders, order lines, and store configurations. By modifying the
PoS model definitions, developers can implement custom
behaviors, integrate with other modules.
Enterprise
First we can add add a field called product_owner_id in the
product_template model.
Enterprise
After defining in the python file, we can add this field in the xml
view of the product_template model.
Enterprise
This is how we extend the pos order model and use the method,
_order_fields() for mapping the fields from the POS frontend
(ui_order) to the pos.order model in the backend when an order is
placed.
Enterprise
After that we can load this field to the pos session. Since the
product_template model is already loaded, we need to load only
the custom field here.
Enterprise
Next we patch the PosStore to load the custom field, ie the
product_owner_id to PoS.
Enterprise
In order to extend the orderlines and add this custom field, ie
product_owner_id field to orderlines, we can patch the Orderline
Component. We can assign value to the product_owner_id using
the get_product() function.
Enterprise
We can inherit the orderline template and add the custom field
value to the orderline.
Enterprise
After adding these files in manifest and upgrading the module,
we can navigate to products page and add the Product owner
name for products
Enterprise
Then after opening the session and adding product to orderline,
we can see the product owner related to that product.
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 extend Order, Orderlines , PoS store and model definition in odoo 17 POS (20)

How to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷s
How to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷sHow to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷s
How to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷s
Celine George
How to Add Custom Fields to Configuration Settings in Odoo 18
How to Add Custom Fields to  Configuration Settings in Odoo 18How to Add Custom Fields to  Configuration Settings in Odoo 18
How to Add Custom Fields to Configuration Settings in Odoo 18
Celine George
View Inheritance in Odoo 17 - Odoo 17 際際滷s
View Inheritance in Odoo 17 - Odoo 17  際際滷sView Inheritance in Odoo 17 - Odoo 17  際際滷s
View Inheritance in Odoo 17 - Odoo 17 際際滷s
Celine George
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
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 Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
Celine George
How to Install Custom Module in Odoo 17 - Odoo 17 際際滷s
How to Install Custom Module in Odoo 17 - Odoo 17 際際滷sHow to Install Custom Module in Odoo 17 - Odoo 17 際際滷s
How to Install Custom Module in Odoo 17 - Odoo 17 際際滷s
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 Create a Basic Module in Odoo 17 - Odoo 17 際際滷s
How to Create a Basic Module in Odoo 17 - Odoo 17 際際滷sHow to Create a Basic Module in Odoo 17 - Odoo 17 際際滷s
How to Create a Basic Module in Odoo 17 - Odoo 17 際際滷s
Celine George
Model Constraints In Odoo 16
Model Constraints In Odoo 16Model Constraints In Odoo 16
Model Constraints In Odoo 16
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
Building a Module in Odoo 16
Building a Module in Odoo 16Building a Module in Odoo 16
Building a Module in Odoo 16
Celine George
Get JSON Data by Changing the URL in Odoo 18
Get JSON Data by Changing the URL in Odoo 18Get JSON Data by Changing the URL in Odoo 18
Get JSON Data by Changing the URL in Odoo 18
Celine George
How To Add A Custom Button To The Chatter In Odoo 18 ?
How To Add A Custom Button To The Chatter In Odoo 18 ?How To Add A Custom Button To The Chatter In Odoo 18 ?
How To Add A Custom Button To The Chatter In Odoo 18 ?
CandidRoot Solutions Private Limited
How to Change the Color on a Progress Bar in odoo 18
How to Change the Color on a Progress Bar in odoo 18How to Change the Color on a Progress Bar in odoo 18
How to Change the Color on a Progress Bar in odoo 18
Celine George
How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18
Celine George
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Celine George
How to create JSON Field in Odoo 17 - Odoo 17 際際滷s
How to create JSON Field in Odoo 17 - Odoo 17 際際滷sHow to create JSON Field in Odoo 17 - Odoo 17 際際滷s
How to create JSON Field in Odoo 17 - Odoo 17 際際滷s
Celine George
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
Celine George
How to Define the Many2One Field in Odoo 17
How to Define the  Many2One Field in Odoo 17How to Define the  Many2One Field in Odoo 17
How to Define the Many2One Field in Odoo 17
Celine George
How to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷s
How to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷sHow to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷s
How to Use JS Class in Form Views in Odoo 17 - Odoo 17 際際滷s
Celine George
How to Add Custom Fields to Configuration Settings in Odoo 18
How to Add Custom Fields to  Configuration Settings in Odoo 18How to Add Custom Fields to  Configuration Settings in Odoo 18
How to Add Custom Fields to Configuration Settings in Odoo 18
Celine George
View Inheritance in Odoo 17 - Odoo 17 際際滷s
View Inheritance in Odoo 17 - Odoo 17  際際滷sView Inheritance in Odoo 17 - Odoo 17  際際滷s
View Inheritance in Odoo 17 - Odoo 17 際際滷s
Celine George
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
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 Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
Celine George
How to Install Custom Module in Odoo 17 - Odoo 17 際際滷s
How to Install Custom Module in Odoo 17 - Odoo 17 際際滷sHow to Install Custom Module in Odoo 17 - Odoo 17 際際滷s
How to Install Custom Module in Odoo 17 - Odoo 17 際際滷s
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 Create a Basic Module in Odoo 17 - Odoo 17 際際滷s
How to Create a Basic Module in Odoo 17 - Odoo 17 際際滷sHow to Create a Basic Module in Odoo 17 - Odoo 17 際際滷s
How to Create a Basic Module in Odoo 17 - Odoo 17 際際滷s
Celine George
Model Constraints In Odoo 16
Model Constraints In Odoo 16Model Constraints In Odoo 16
Model Constraints In Odoo 16
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
Building a Module in Odoo 16
Building a Module in Odoo 16Building a Module in Odoo 16
Building a Module in Odoo 16
Celine George
Get JSON Data by Changing the URL in Odoo 18
Get JSON Data by Changing the URL in Odoo 18Get JSON Data by Changing the URL in Odoo 18
Get JSON Data by Changing the URL in Odoo 18
Celine George
How to Change the Color on a Progress Bar in odoo 18
How to Change the Color on a Progress Bar in odoo 18How to Change the Color on a Progress Bar in odoo 18
How to Change the Color on a Progress Bar in odoo 18
Celine George
How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18How to Modify Existing Web Pages in Odoo 18
How to Modify Existing Web Pages in Odoo 18
Celine George
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Celine George
How to create JSON Field in Odoo 17 - Odoo 17 際際滷s
How to create JSON Field in Odoo 17 - Odoo 17 際際滷sHow to create JSON Field in Odoo 17 - Odoo 17 際際滷s
How to create JSON Field in Odoo 17 - Odoo 17 際際滷s
Celine George
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
Celine George
How to Define the Many2One Field in Odoo 17
How to Define the  Many2One Field in Odoo 17How to Define the  Many2One Field in Odoo 17
How to Define the Many2One Field in Odoo 17
Celine George

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
Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17
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
Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17Comparing RFQ Lines for the best price in Odoo 17
Comparing RFQ Lines for the best price in Odoo 17
Celine George

Recently uploaded (20)

Conrad "Accessibility Essentials: Introductory Seminar"
Conrad "Accessibility Essentials: Introductory Seminar"Conrad "Accessibility Essentials: Introductory Seminar"
Conrad "Accessibility Essentials: Introductory Seminar"
National Information Standards Organization (NISO)
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)
Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...
Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...
Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...
Sue Beckingham
Knownsense 2025 Finals-U-25 General Quiz.pdf
Knownsense 2025 Finals-U-25 General Quiz.pdfKnownsense 2025 Finals-U-25 General Quiz.pdf
Knownsense 2025 Finals-U-25 General Quiz.pdf
Pragya - UEM Kolkata Quiz Club
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study MaterialPass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Jenny408767
NURSING PROCESS AND ITS STEPS .pptx
NURSING PROCESS AND ITS STEPS                 .pptxNURSING PROCESS AND ITS STEPS                 .pptx
NURSING PROCESS AND ITS STEPS .pptx
PoojaSen20
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptxANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
PRADEEP ABOTHU
Studying and Notetaking: Some Suggestions
Studying and Notetaking: Some SuggestionsStudying and Notetaking: Some Suggestions
Studying and Notetaking: Some Suggestions
Damian T. Gordon
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptxO SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
AituzazKoree
MIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos RaftisMIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos Raftis
MIPLM
UNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptxUNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptx
HARIHARAN A
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
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
McElaney "What is inclusive publishing and why do we care about accessibility...
McElaney "What is inclusive publishing and why do we care about accessibility...McElaney "What is inclusive publishing and why do we care about accessibility...
McElaney "What is inclusive publishing and why do we care about accessibility...
National Information Standards Organization (NISO)
ISO 42001 2023 Audit and Control Checklist
ISO 42001 2023 Audit and Control ChecklistISO 42001 2023 Audit and Control Checklist
ISO 42001 2023 Audit and Control Checklist
priyanshamadhwal2
MIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel HolznerMIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel Holzner
MIPLM
Knownsense 2025 prelims- U-25 General Quiz.pdf
Knownsense 2025 prelims- U-25 General Quiz.pdfKnownsense 2025 prelims- U-25 General Quiz.pdf
Knownsense 2025 prelims- U-25 General Quiz.pdf
Pragya - UEM Kolkata Quiz Club
Marketing Management (16th edition) Philip Kotler
Marketing Management (16th edition) Philip KotlerMarketing Management (16th edition) Philip Kotler
Marketing Management (16th edition) Philip Kotler
menhutamizh
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
Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...
Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...
Enhancing SoTL through Generative AI -- Opportunities and Ethical Considerati...
Sue Beckingham
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study MaterialPass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Pass SAP C_C4H47_2503 in 2025 | Latest Exam Questions & Study Material
Jenny408767
NURSING PROCESS AND ITS STEPS .pptx
NURSING PROCESS AND ITS STEPS                 .pptxNURSING PROCESS AND ITS STEPS                 .pptx
NURSING PROCESS AND ITS STEPS .pptx
PoojaSen20
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptxANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT PPT.pptx
PRADEEP ABOTHU
Studying and Notetaking: Some Suggestions
Studying and Notetaking: Some SuggestionsStudying and Notetaking: Some Suggestions
Studying and Notetaking: Some Suggestions
Damian T. Gordon
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptxO SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
AituzazKoree
MIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos RaftisMIPLM subject matter expert Nicos Raftis
MIPLM subject matter expert Nicos Raftis
MIPLM
UNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptxUNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptx
HARIHARAN A
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
ISO 42001 2023 Audit and Control Checklist
ISO 42001 2023 Audit and Control ChecklistISO 42001 2023 Audit and Control Checklist
ISO 42001 2023 Audit and Control Checklist
priyanshamadhwal2
MIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel HolznerMIPLM subject matter expert Daniel Holzner
MIPLM subject matter expert Daniel Holzner
MIPLM
Marketing Management (16th edition) Philip Kotler
Marketing Management (16th edition) Philip KotlerMarketing Management (16th edition) Philip Kotler
Marketing Management (16th edition) Philip Kotler
menhutamizh
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

How to extend Order, Orderlines , PoS store and model definition in odoo 17 POS

  • 1. How to extend Order, Orderliness , PoS store and model definition in odoo 17 POS Enterprise
  • 2. Introduction Enterprise This slide well discuss how to extend order, orderlines , PoS store and model definition in odoo 17 POS. In Odoo 17, extending the Point of Sale (PoS) involves customizing core components such as orders, order lines, and store configurations. By modifying the PoS model definitions, developers can implement custom behaviors, integrate with other modules.
  • 3. Enterprise First we can add add a field called product_owner_id in the product_template model.
  • 4. Enterprise After defining in the python file, we can add this field in the xml view of the product_template model.
  • 5. Enterprise This is how we extend the pos order model and use the method, _order_fields() for mapping the fields from the POS frontend (ui_order) to the pos.order model in the backend when an order is placed.
  • 6. Enterprise After that we can load this field to the pos session. Since the product_template model is already loaded, we need to load only the custom field here.
  • 7. Enterprise Next we patch the PosStore to load the custom field, ie the product_owner_id to PoS.
  • 8. Enterprise In order to extend the orderlines and add this custom field, ie product_owner_id field to orderlines, we can patch the Orderline Component. We can assign value to the product_owner_id using the get_product() function.
  • 9. Enterprise We can inherit the orderline template and add the custom field value to the orderline.
  • 10. Enterprise After adding these files in manifest and upgrading the module, we can navigate to products page and add the Product owner name for products
  • 11. Enterprise Then after opening the session and adding product to orderline, we can see the product owner related to that product.
  • 12. 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