Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
772 Näkymät

Hello everyone, I want to ask how we inherit the contacts module, I don't understand because the model is res.partner, I hope all my friends can help me

Thank You

Avatar
Hylkää
Paras vastaus

Hi,

To inherit the contacts module here is a sample code:


from odoo import fields, models


class ResPartner(models.Model):

    """ This class extends the 'res.partner' model to add fields

    """

    _inherit = "res.partner"

    # New fields to add


Regards

Avatar
Hylkää