Description:
Odoo provides compute function which helps to calculate from some other fields. It is just like any other regular field along with an additional argument compute.
Which can be stored directly and retrieved directly from the database. One of the common examples for the usage of such fields is calculating the total amount that is calculated by multiplying the unit price of the product with quantity.
So instead of reading a database stored value, we can also calculate the values for the fields by a function in Odoo. In Odoo models, we can achieve this by the use of computed fields.