Hello,
In odoo 11, I have a model with a field:
partner_id = fields.Many2one(string='Contact', comodel_name='res.partner')
Some of these contacts have a parent (also a 'res.partner'), e.g. 'A Company'
In the form view, the contact is shown as 'A Company, My Partner'.
How it is possible to show only the partner name without the parent name. In my case, it should be 'My Partner'.
I try :
class ResPartner(models.Model):
_inherit = 'res.partner'
_rec_name = 'name'
But it doesn't work.
Best regards,
Boris