Hi ,
I have 2 models , in the 1st model i have name and date , and in the 2nd model i have the name .
First model:
class Patient(models.Model):
_inherit = 'res.partner'
_name = 'res.partner'
Date_naissance = fields.Date()
Second model:
class ordonnance(models.Model):
_inherit = 'account.invoice'
...
I want to choose the name and get the value of field Date_naissance related to this name, then I need to show it in the view of 2nd model. how can I do it please ?