I'm having problems to add the fields to PartnerDetailsEdit screen, this are the models that i'm using:
classDepartamento(models.Model):
_name = 'departamentos'
name = fields.Char(string='Nombre')codigo = fields.Char(string='Código')
municipios_ids = fields.One2many('municipios', 'departamentos_id', string='Municipios')
classMunicipio(models.Model):
_name = 'municipios'
name = fields.Char(string='Nombre')codigo = fields.Char(string='Código')
departamentos_id = fields.Many2one('departamentos', string='Departamentos')
classResPartner(models.Model)
:_inherit = 'res.partner'
cedula_root = fields.Char(string='cedula', size=10, help='D.U.I del cliente') departamentos_id = fields.Many2one('departamentos', string='Departamento')
municipios_id = fields.Many2one('municipios', string='Municipio',
domain="[('departamentos_id', '=', departamentos_id)]")