Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
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

Similar to Delegation Inheritance in Odoo 17 and Its Use Cases

Gof design pattern
Gof design patternGof design pattern
Gof design pattern
naveen kumar
 
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
Simplilearn
 
How to Override Delete Function in Odoo 17
How to Override Delete Function in Odoo 17How to Override Delete Function in Odoo 17
How to Override Delete Function in Odoo 17
Celine George
 
Django Patterns - Pycon India 2014
Django Patterns - Pycon India 2014Django Patterns - Pycon India 2014
Django Patterns - Pycon India 2014
arunvr
 
Decorator design pattern
Decorator design patternDecorator design pattern
Decorator design pattern
Neelima Sanagavarapu
 
Design Patterns
Design PatternsDesign Patterns
Design Patterns
Sergii Stets
 
Design pattern
Design patternDesign pattern
Design pattern
Shreyance Jain
 
Software engineering: design for reuse
Software engineering: design for reuseSoftware engineering: design for reuse
Software engineering: design for reuse
Marco Brambilla
 
Intro to iOS Development • Made by Many
Intro to iOS Development • Made by ManyIntro to iOS Development • Made by Many
Intro to iOS Development • Made by Many
kenatmxm
 
Creational Design Patterns.pptx
Creational Design Patterns.pptxCreational Design Patterns.pptx
Creational Design Patterns.pptx
Sachin Patidar
 
Inheritance _ Traditional Class Inheritance in Odoo 16
Inheritance _ Traditional Class Inheritance in Odoo 16Inheritance _ Traditional Class Inheritance in Odoo 16
Inheritance _ Traditional Class Inheritance in Odoo 16
Celine George
 
UNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptxUNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptx
anguraju1
 
P Training Presentation
P Training PresentationP Training Presentation
P Training Presentation
Gaurav Tyagi
 
Design Pattern in Software Engineering
Design Pattern in Software Engineering Design Pattern in Software Engineering
Design Pattern in Software Engineering
Bilal Hassan
 
Software design principles - jinal desai
Software design principles - jinal desaiSoftware design principles - jinal desai
Software design principles - jinal desai
jinaldesailive
 
Sda 8
Sda   8Sda   8
Django design-patterns
Django design-patternsDjango design-patterns
Django design-patterns
Agiliq Info Solutions India Pvt Ltd
 
Model Attribute - _description
Model Attribute - _descriptionModel Attribute - _description
Model Attribute - _description
Celine George
 
Layers of Smalltalk Application
Layers of Smalltalk ApplicationLayers of Smalltalk Application
Layers of Smalltalk Application
speludner
 
ITSE_10(UML,OO).pptx
ITSE_10(UML,OO).pptxITSE_10(UML,OO).pptx
ITSE_10(UML,OO).pptx
mubashirahmed0296
 

Similar to Delegation Inheritance in Odoo 17 and Its Use Cases (20)

Gof design pattern
Gof design patternGof design pattern
Gof design pattern
 
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
C# Design Patterns | Design Pattern Tutorial For Beginners | C# Programming T...
 
How to Override Delete Function in Odoo 17
How to Override Delete Function in Odoo 17How to Override Delete Function in Odoo 17
How to Override Delete Function in Odoo 17
 
Django Patterns - Pycon India 2014
Django Patterns - Pycon India 2014Django Patterns - Pycon India 2014
Django Patterns - Pycon India 2014
 
Decorator design pattern
Decorator design patternDecorator design pattern
Decorator design pattern
 
Design Patterns
Design PatternsDesign Patterns
Design Patterns
 
Design pattern
Design patternDesign pattern
Design pattern
 
Software engineering: design for reuse
Software engineering: design for reuseSoftware engineering: design for reuse
Software engineering: design for reuse
 
Intro to iOS Development • Made by Many
Intro to iOS Development • Made by ManyIntro to iOS Development • Made by Many
Intro to iOS Development • Made by Many
 
Creational Design Patterns.pptx
Creational Design Patterns.pptxCreational Design Patterns.pptx
Creational Design Patterns.pptx
 
Inheritance _ Traditional Class Inheritance in Odoo 16
Inheritance _ Traditional Class Inheritance in Odoo 16Inheritance _ Traditional Class Inheritance in Odoo 16
Inheritance _ Traditional Class Inheritance in Odoo 16
 
UNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptxUNIT IV DESIGN PATTERNS.pptx
UNIT IV DESIGN PATTERNS.pptx
 
P Training Presentation
P Training PresentationP Training Presentation
P Training Presentation
 
Design Pattern in Software Engineering
Design Pattern in Software Engineering Design Pattern in Software Engineering
Design Pattern in Software Engineering
 
Software design principles - jinal desai
Software design principles - jinal desaiSoftware design principles - jinal desai
Software design principles - jinal desai
 
Sda 8
Sda   8Sda   8
Sda 8
 
Django design-patterns
Django design-patternsDjango design-patterns
Django design-patterns
 
Model Attribute - _description
Model Attribute - _descriptionModel Attribute - _description
Model Attribute - _description
 
Layers of Smalltalk Application
Layers of Smalltalk ApplicationLayers of Smalltalk Application
Layers of Smalltalk Application
 
ITSE_10(UML,OO).pptx
ITSE_10(UML,OO).pptxITSE_10(UML,OO).pptx
ITSE_10(UML,OO).pptx
 

More from Celine George

How to Create a New Article in Knowledge App in Odoo 17
How to Create a New Article in Knowledge App in Odoo 17How to Create a New Article in Knowledge App in Odoo 17
How to Create a New Article in Knowledge App in Odoo 17
Celine George
 
Odoo 17 Social Marketing - Lead Generation On Facebook
Odoo 17 Social Marketing - Lead Generation On FacebookOdoo 17 Social Marketing - Lead Generation On Facebook
Odoo 17 Social Marketing - Lead Generation On Facebook
Celine George
 
What is Packaging of Products in Odoo 17
What is Packaging of Products in Odoo 17What is Packaging of Products in Odoo 17
What is Packaging of Products in Odoo 17
Celine George
 
How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17
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 Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17
Celine George
 
Year-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 DashboardYear-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 Dashboard
Celine George
 
What is Blank dashboards in the odoo 17 ERP
What is Blank dashboards in the odoo 17 ERPWhat is Blank dashboards in the odoo 17 ERP
What is Blank dashboards in the odoo 17 ERP
Celine George
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Celine George
 
How to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 WebsiteHow to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 Website
Celine George
 
How to Add Colour Kanban Records in Odoo 17 Notebook
How to Add Colour Kanban Records in Odoo 17 NotebookHow to Add Colour Kanban Records in Odoo 17 Notebook
How to Add Colour Kanban Records in Odoo 17 Notebook
Celine George
 
Split Shifts From Gantt View in the Odoo 17
Split Shifts From Gantt View in the  Odoo 17Split Shifts From Gantt View in the  Odoo 17
Split Shifts From Gantt View in the Odoo 17
Celine George
 
How to Manage Internal Notes in Odoo 17 POS
How to Manage Internal Notes in Odoo 17 POSHow to Manage Internal Notes in Odoo 17 POS
How to Manage Internal Notes in Odoo 17 POS
Celine George
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
Celine George
 
How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17
Celine George
 
How to Install Theme in the Odoo 17 ERP
How to  Install Theme in the Odoo 17 ERPHow to  Install Theme in the Odoo 17 ERP
How to Install Theme in the Odoo 17 ERP
Celine George
 
The membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERPThe membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERP
Celine George
 
Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17
Celine George
 
Front Desk Management in the Odoo 17 ERP
Front Desk  Management in the Odoo 17 ERPFront Desk  Management in the Odoo 17 ERP
Front Desk Management in the Odoo 17 ERP
Celine George
 
Discount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 SalesDiscount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 Sales
Celine George
 

More from Celine George (20)

How to Create a New Article in Knowledge App in Odoo 17
How to Create a New Article in Knowledge App in Odoo 17How to Create a New Article in Knowledge App in Odoo 17
How to Create a New Article in Knowledge App in Odoo 17
 
Odoo 17 Social Marketing - Lead Generation On Facebook
Odoo 17 Social Marketing - Lead Generation On FacebookOdoo 17 Social Marketing - Lead Generation On Facebook
Odoo 17 Social Marketing - Lead Generation On Facebook
 
What is Packaging of Products in Odoo 17
What is Packaging of Products in Odoo 17What is Packaging of Products in Odoo 17
What is Packaging of Products in Odoo 17
 
How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17
 
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
 
How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17
 
Year-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 DashboardYear-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 Dashboard
 
What is Blank dashboards in the odoo 17 ERP
What is Blank dashboards in the odoo 17 ERPWhat is Blank dashboards in the odoo 17 ERP
What is Blank dashboards in the odoo 17 ERP
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
 
How to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 WebsiteHow to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 Website
 
How to Add Colour Kanban Records in Odoo 17 Notebook
How to Add Colour Kanban Records in Odoo 17 NotebookHow to Add Colour Kanban Records in Odoo 17 Notebook
How to Add Colour Kanban Records in Odoo 17 Notebook
 
Split Shifts From Gantt View in the Odoo 17
Split Shifts From Gantt View in the  Odoo 17Split Shifts From Gantt View in the  Odoo 17
Split Shifts From Gantt View in the Odoo 17
 
How to Manage Internal Notes in Odoo 17 POS
How to Manage Internal Notes in Odoo 17 POSHow to Manage Internal Notes in Odoo 17 POS
How to Manage Internal Notes in Odoo 17 POS
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
 
How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17How to Configure Time Off Types in Odoo 17
How to Configure Time Off Types in Odoo 17
 
How to Install Theme in the Odoo 17 ERP
How to  Install Theme in the Odoo 17 ERPHow to  Install Theme in the Odoo 17 ERP
How to Install Theme in the Odoo 17 ERP
 
The membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERPThe membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERP
 
Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17
 
Front Desk Management in the Odoo 17 ERP
Front Desk  Management in the Odoo 17 ERPFront Desk  Management in the Odoo 17 ERP
Front Desk Management in the Odoo 17 ERP
 
Discount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 SalesDiscount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 Sales
 

Recently uploaded

Beyond the Advance Presentation for By the Book 9
Beyond the Advance Presentation for By the Book 9Beyond the Advance Presentation for By the Book 9
Beyond the Advance Presentation for By the Book 9
John Rodzvilla
 
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
Dr Vijay Vishwakarma
 
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Neny Isharyanti
 
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptxdebts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
AncyTEnglish
 
Michael Stevenson EHF Slides June 28th 2024 Shared.pptx
Michael Stevenson EHF Slides June 28th 2024 Shared.pptxMichael Stevenson EHF Slides June 28th 2024 Shared.pptx
Michael Stevenson EHF Slides June 28th 2024 Shared.pptx
EduSkills OECD
 
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
siemaillard
 
The basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptxThe basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptx
heathfieldcps1
 
Final ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdfFinal ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdf
Zuzana Mészárosová
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
Nguyen Thanh Tu Collection
 
debts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptxdebts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptx
AncyTEnglish
 
Environmental science 1.What is environmental science and components of envir...
Environmental science 1.What is environmental science and components of envir...Environmental science 1.What is environmental science and components of envir...
Environmental science 1.What is environmental science and components of envir...
Deepika
 
No, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalismNo, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalism
Paul Bradshaw
 
Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17
Celine George
 
Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...
Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...
Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...
Simplilearn
 
The Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptx
The Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptxThe Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptx
The Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptx
OH TEIK BIN
 
Conducting exciting academic research in Computer Science
Conducting exciting academic research in Computer ScienceConducting exciting academic research in Computer Science
Conducting exciting academic research in Computer Science
Abhik Roychoudhury
 
chemistry project on foaming capacity of soap class 11
chemistry project on foaming capacity of soap class 11chemistry project on foaming capacity of soap class 11
chemistry project on foaming capacity of soap class 11
equaltogreenxyz
 
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALARINTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
DrRkurinjiMalarkurin
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
drtech3715
 
Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.
tanishq87
 

Recently uploaded (20)

Beyond the Advance Presentation for By the Book 9
Beyond the Advance Presentation for By the Book 9Beyond the Advance Presentation for By the Book 9
Beyond the Advance Presentation for By the Book 9
 
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
 
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
 
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptxdebts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
 
Michael Stevenson EHF Slides June 28th 2024 Shared.pptx
Michael Stevenson EHF Slides June 28th 2024 Shared.pptxMichael Stevenson EHF Slides June 28th 2024 Shared.pptx
Michael Stevenson EHF Slides June 28th 2024 Shared.pptx
 
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 
The basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptxThe basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptx
 
Final ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdfFinal ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdf
 
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
CHUYÊN ĐỀ DẠY THÊM TIẾNG ANH LỚP 12 - GLOBAL SUCCESS - FORM MỚI 2025 - HK1 (C...
 
debts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptxdebts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptx
 
Environmental science 1.What is environmental science and components of envir...
Environmental science 1.What is environmental science and components of envir...Environmental science 1.What is environmental science and components of envir...
Environmental science 1.What is environmental science and components of envir...
 
No, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalismNo, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalism
 
Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17
 
Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...
Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...
Cyber Security Interview Questions and Answers | Cyber Security Interview Tip...
 
The Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptx
The Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptxThe Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptx
The Value of Time ~ A Story to Ponder On (Eng. & Chi.).pptx
 
Conducting exciting academic research in Computer Science
Conducting exciting academic research in Computer ScienceConducting exciting academic research in Computer Science
Conducting exciting academic research in Computer Science
 
chemistry project on foaming capacity of soap class 11
chemistry project on foaming capacity of soap class 11chemistry project on foaming capacity of soap class 11
chemistry project on foaming capacity of soap class 11
 
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALARINTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
 
Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.
 

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