añade campo warehouse a partner_node

crea un almacén al crea un nuevo nodo si no se define
movido menús al root de network_partner
This commit is contained in:
santiky 2022-04-20 15:51:27 +02:00
parent 72e7b5087e
commit fecbdb7a9c
Signed by: snt
GPG key ID: A9FD34930EADBE71
12 changed files with 73 additions and 88 deletions

View file

@ -11,9 +11,5 @@ class PartnerNetwork(models.Model):
_description = 'A network of nodes.'
name = fields.Char(string="Nombre", help="El nombre de la red.")
#Fields
#network_partner_id = fields.Many2one('res.partner', required=True, ondelete='restrict')
#'groups_id': fields.many2many('res.groups', 'res_groups_users_rel', 'uid', 'gid', 'Groups'),
#member_id = fields.Many2many('res.partner', 'res_partner_network_rel', 'uid', 'nid', "Partners" )
nodes_ids = fields.One2many('partner.node', 'network_id', string="Nodos de la red", help="Los nodos de usuarios finales que conforman la red")