Hi everyone, I have two fields related to the 'res.partner' that bring me the "child_ids" of the contacts that are invoice addresses and shipping addresses. The field works perfectly but as these addresses do not have a name as such, they only have data in the fields 'street', 'street2', 'country_id', 'state_id', 'city', and 'zip' when selecting an option they all appear as "Azure Interior - Billing Address" and "Azure Interior - Shipping Address" in this example. I need that when I select the options it shows me the information of the field 'street', 'street2' and 'city' concatenated or only the information in the field 'street' of res.partner. I attach my code and a screenshot so you can see it better:
from odoo import models, fields, api
class direcciones(models.Model):
_inherit = 'account.move'
direccion_factura = fields.Many2one('res.partner', string='Direccion de Facturacion', domain="['&','&',('is_company','=',False),('parent_id','=',partner_id),('type','=','invoice')]")
direccion_envio = fields.Many2one('res.partner', string='Direccion de Envio', domain="['&','&',('is_company','=',False),('parent_id','=',partner_id),('type','=','delivery')]")