This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from odoo import models, fields | |
class ParentModel(models.Model): | |
_name = 'parent.model' | |
parent_field_1 = fields.Char(string="Parent Field 1") | |
parent_field_2 = fields.Integer(string="Parent Field 2") | |
# If you want to display child data, you must create One2many field. |