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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký