In Odoo 9C:
am trying to override a standard method, which involves adding another dependency field.
However, I noticed, newly added field in the depends decorator is not taken into consideration while saving the record.
Ex: Say in Purchase Order, the method called "_amount_all" has @api.depends on "order_line.price_total"
Now In my custom module I have overridden that method, and included one of my dependency field to it, like
@api.depends('order_line.price_total','myfield')
Though it seems to work, when I change the value in myfield, however while saving the record, method is not triggered to recompute...
So In other words, newly added dependency fields are not taken into consideration while saving the record, as a result, method computation is not at all triggered. Hence old value is retained.
I believe this must be a bug.
Anybody has faced this issue?