addons-cm/network_partner/models/res_partner.py
2022-03-24 09:01:17 +01:00

14 lines
415 B
Python

#import logging
from odoo import models, fields, api
#_logger = logging.getLogger(__name__)
class ResPartner(models.Model):
_inherit = 'res.partner'
#'users': fields.many2many('res.users', 'res_groups_users_rel', 'gid', 'uid', 'Users'),
node_id = fields.Many2one('partner.node', string="Nodo")
is_node = fields.Boolean(string="Es un nodo", help="Éste partner representa un nodo en una red.")