How to use @api.depends decorated method?

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(). Continue reading