Hello everyone. Today I’m gonna explain you how to use @api.depends decorated method.
First of all, the fields can be computed (instead of read from the database) using the compute parameter, it must assign the computed value to the field, it uses the values of other fields from the same model or others model (unlike @api.onchange which work only with the fields in the same view), it should specify fields using depends().
Here we have created the @api.depends decorated method of Students model.
Computed fields are not stored by default, they are computed and returned when requested. Setting store = True will store them in the database.