I used (related) instead of onchange in my fields and it really does work in user interface but it didn't record in Database.When I open pgAdmin to check databse ,there is no record except name(field).
There is My code .............>>>>
Examples .....
_name = text.model
name = fields.Many2one('op.admission.register', string="Name")
date_of_birth = fields.Date('Date Of Birth', related='name.birthday', readonly=True)
st_email = fields.Char('Email', related='st_name.email', readonly=True)
When i went to check (Text.model) in database , there is no record in other fields except (name).
i would like to change all data when i choose name. Please,give me some adivces and Thank you.