#import logging from odoo import models, fields, api #_logger = logging.getLogger(__name__) class PartnerNode(models.Model): _name = 'partner.node' _description = 'A node of partners in a network' name = fields.Char(string="Nombre", help="Cómo se denomina el nodo.") network_id = fields.Many2one('partner.network', string="Red", help="La red a la que pertenece el nodo.") partner_ids = fields.One2many('res.partner', 'node_id', string='Contactos del nodo', help='Los contactos asociados a éste nodo.')