I have 2 classes and with Many2one-relation. How can i display the title from class A in a form view from class B (title_from_a)?
The form view for class B does not show the title, but after saving it shows the title. is there a solution?
class A(models.Model):
_name = 'class.a'
title = fields.Char('Title')
b_ids = fields.One2Many('class.b', 'a_id')
class B(models.Model):
_name = 'class.b'
a_id = fields.Many2one('class.a')
title_from_a = fields.Char(related='a_id.title')