Inheritance  – Delegation Inheritance | Inherits in Odoo | Odoo Development – CBMS Odoo ERP

Inheritance – Delegation Inheritance | Inherits in Odoo | Odoo Development – CBMS Odoo ERP

2
0 minutes, 57 seconds Read

In delegation inheritance provides more flexibility, we use the _inherits attribute. This is used if you want to sink another model in your current model without affecting the views. So the database tables contain fields in your model and also a field representing the inherited object.

Read more about DIfferent Inheritance in Odoo:

Video Contents:
00:38 What is Delegation Inheritance
05:26 Delegation Inheritance code view
08:04 Benefits of using Delegation Inheritance
08:49 Examples for Delegation

#odoo14 #odoo #odoo14features

►► Visit our company website:

Connect with us:
► Facebook:
► twitter:
► LinkedIn:
► Pinterest:

About Us
Cybrosys is enriched with technical experts and research scholars producing high-end quality software tools. Our sophisticated infrastructure and lab facilities constantly bring in new technological innovations and attributions. Partnership with ODOO, MICROSOFT, IBM, Intel, HP, NASSCOM proves our strength and excellence.

We are Odoo Gold Partners standing par excellence in Odoo Implementation, Customization, and allied services. We do Source code sale and Employee outsourcing. The latest research and developments in Cybrosys are being conducted in Blockchain. Our robust quality product and services are widely used by clients residing across in India, USA, UK, Middle East & Europe.

#Inheritance #Delegation #Inheritance #Inherits #Odoo #Odoo #Development

Similar Posts

2 Comments

  1. avatar
    @alecmouti3500 says:

    great Tutorial, the concept of all inheritance are quite clear but trying inheriting res_partner is very handy with errors. i'm getting create_company is not a valid action error when i'm adding an additional field.

    Py file
    <record id="libray_members_view_form" model="ir.ui.view">
    <field name="name">libray Members</field>
    <field name="model">library.member</field>
    <field name="inherit_id" ref="base.view_partner_form"/>
    <field name="arch" type="xml">

    <field name="name" position="after">
    <field name="date_start"/>
    <field name="date_end"/>

    </field>
    </field>
    </record>

    xml file
    <record id="libray_members_view_form" model="ir.ui.view">
    <field name="name">libray Members</field>
    <field name="model">library.member</field>
    <field name="inherit_id" ref="base.view_partner_form"/>
    <field name="arch" type="xml">

    <field name="name" position="after">
    <field name="date_start"/>
    <field name="date_end"/>

    </field>
    </field>
    </record>

    kindly help

Leave a Reply

Your email address will not be published. Required fields are marked *