Sometimes stored fields must be recomputed, but triggers can not be launched (e.g. in case of SQL injection).
How to recompute them an easy way?
In v13 the above syntax still works, but the add_todo should be replaced by add_to_compute:
env.add_to_compute(model._fields['amount_total'], model.search([])) model.recompute()