I created a stored (stored=True) computed field.
When field related to this one are modified, I want to change the value of the field.
So I used @api.depense, as follow :
@api.multi @api.depends('lst_price','price','taxes_id','price_extra_ttc','price_extra') def _product_price_ttc(self):
for record in self:
record.price_ttc = round(record.lst_price * ( 1 + record.taxes_id.amount),2)
But when one the field of the 'depends' if modified, my function does not fire.
What is wrong with my code ?