Course content
#odoorelatedfield #relatedfieldodoo #createmoduleodoo
How to add related fields in Odoo12. Easily get the values from another model using the related field.

Email: odoomates@gmail.com

Code Used:
patient_id = fields.Many2one('hospital.patient', string='Patient', required=True)
patient_age = fields.Integer('Age', related='patient_id.patient_age')
Views
0 Total Views
0 Members Views
0 Public Views
Actions
0 Likes
0 Dislikes
0 Comments
Share on Social Networks
Share Link
Share by mail

Please login to share this video by email.

Embed in your website