crea un almacén al crea un nuevo nodo si no se define movido menús al root de network_partner
15 lines
455 B
Python
15 lines
455 B
Python
#import logging
|
|
|
|
from odoo import models, fields, api
|
|
|
|
#_logger = logging.getLogger(__name__)
|
|
|
|
|
|
class PartnerNetwork(models.Model):
|
|
_name = 'partner.network'
|
|
#_inherit = 'mail.thread'
|
|
_description = 'A network of nodes.'
|
|
|
|
name = fields.Char(string="Nombre", help="El nombre de la red.")
|
|
nodes_ids = fields.One2many('partner.node', 'network_id', string="Nodos de la red", help="Los nodos de usuarios finales que conforman la red")
|
|
|