Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
756 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง