SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
Delegation Inheritance
in Odoo 17
Enterprise
Introduction
Enterprise
There are 3 types of inheritance in odoo Classical, Extension,
and Delegation. Delegation inheritance is used to sink other
models to our custom model. And there is no change in the
views. This slide will discuss delegation inheritance and its use
cases in odoo 17.
Enterprise
● Delegation inheritance is used to sink other models to our
custom model
● The delegation inheritance inherits only fields and methods
are not inherited.
● It can be useful, when we need to embed a model in our
current model without affecting the existing views, but we
want to have the fields of inherited objects.
● In delegate inheritance, the attributes used are _inherits.
Enterprise
● Then we can see an example of the delegation inheritance.
● Consider the product.product model here inherits the
product.template model field “product_tmpl_id”.
class ProductKit(models.Model):
_name = 'product.kit'
_inherits = {'product.template': 'product_template_id'}
_description = 'Product Package'
_inherit = ['mail.thread', 'mail.activity.mixin']
product_template_id = fields.Many2one
('product.template',string='Related_product_id',auto_join=Tru
e, index=True, ondelete="cascade", required=True)
Enterprise
● Syntax for delegation inheritance: _inherits =
{'product.template': 'product_template_id'}
● Product.template is the model which is going to be used in
delegation inheritance.
● And product_template_id is a Many2one field that is linked
with the model product.kit
● As a result, the database tables will have both field for the
inherited object and the information from your model.
● For this inheritance, we must declare a Many2one field of the
inheriting model.
● In this case, all fields in the model product_template are now
available in the model product.kit.
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
What is Delegation Inheritance in Odoo 15
PPTX
What is Model Inheritance in Odoo 17 ERP
PPTX
Inheritance _ Delegation Inheritance in Odoo 16
PPTX
Different types of inheritance in odoo 18
PPTX
Python Inheritance in Odoo 17 - Odoo 17 Slides
PPTX
Odoo 15 Traditional Class Inheritance
PPTX
How to Implement OWL Notification Service in Odoo 18
PPTX
Tracking Profit Margins in Sales Orders with Odoo 18
What is Delegation Inheritance in Odoo 15
What is Model Inheritance in Odoo 17 ERP
Inheritance _ Delegation Inheritance in Odoo 16
Different types of inheritance in odoo 18
Python Inheritance in Odoo 17 - Odoo 17 Slides
Odoo 15 Traditional Class Inheritance
How to Implement OWL Notification Service in Odoo 18
Tracking Profit Margins in Sales Orders with Odoo 18

More from Celine George (20)

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
PPTX
How to Apply for a Job From Odoo 18 Website
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
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
How to Apply for a Job From Odoo 18 Website
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Ad

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Cell Types and Its function , kingdom of life
PDF
Classroom Observation Tools for Teachers
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PPTX
Institutional Correction lecture only . . .
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Pharma ospi slides which help in ospi learning
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
01-Introduction-to-Information-Management.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Anesthesia in Laparoscopic Surgery in India
Cell Types and Its function , kingdom of life
Classroom Observation Tools for Teachers
PPH.pptx obstetrics and gynecology in nursing
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Computing-Curriculum for Schools in Ghana
STATICS OF THE RIGID BODIES Hibbelers.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Cell Structure & Organelles in detailed.
Institutional Correction lecture only . . .
Renaissance Architecture: A Journey from Faith to Humanism
Pharma ospi slides which help in ospi learning
Ad

Delegation Inheritance in Odoo 17 and Its Use Cases

  • 2. Introduction Enterprise There are 3 types of inheritance in odoo Classical, Extension, and Delegation. Delegation inheritance is used to sink other models to our custom model. And there is no change in the views. This slide will discuss delegation inheritance and its use cases in odoo 17.
  • 3. Enterprise ● Delegation inheritance is used to sink other models to our custom model ● The delegation inheritance inherits only fields and methods are not inherited. ● It can be useful, when we need to embed a model in our current model without affecting the existing views, but we want to have the fields of inherited objects. ● In delegate inheritance, the attributes used are _inherits.
  • 4. Enterprise ● Then we can see an example of the delegation inheritance. ● Consider the product.product model here inherits the product.template model field “product_tmpl_id”. class ProductKit(models.Model): _name = 'product.kit' _inherits = {'product.template': 'product_template_id'} _description = 'Product Package' _inherit = ['mail.thread', 'mail.activity.mixin'] product_template_id = fields.Many2one ('product.template',string='Related_product_id',auto_join=Tru e, index=True, ondelete="cascade", required=True)
  • 5. Enterprise ● Syntax for delegation inheritance: _inherits = {'product.template': 'product_template_id'} ● Product.template is the model which is going to be used in delegation inheritance. ● And product_template_id is a Many2one field that is linked with the model product.kit ● As a result, the database tables will have both field for the inherited object and the information from your model. ● For this inheritance, we must declare a Many2one field of the inheriting model. ● In this case, all fields in the model product_template are now available in the model product.kit.
  • 6. 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