Difference between @api.one and @api.multi ?

Hello , In this post we will discuss about the difference between @api.one and @api.multi which often cause confusing among Odoo developers ,we will try to make the difference clear.

Continue reading

Advertisements

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