What i have understood so far is:
1. 'qty_available' is a computed field: which means it will not be called unless it is loaded from view
2. 'api.depends' can only be used on computed field
3. maybe "store=True" on qty_available will work but I feel a bit risky, its odoo base field so maybe it will break
4. override 'write' function is kinda overkill
My goal is really simple, I want to trigger a function when qty_available (Quantity on hand) of a product changes, what should I do? I dont know if 'stock.quant' has anything to do with it
supering the action_done of stock move will help you in this case ?