Fix Quantity onchange on source for Framework Agreement

This is a new-style onchange, and if I understand correctly, it changes attributes of `self` like @yvaucher does here. Same thing for new-style computed fields. This even works when the record is not saved into the database yet.

On the other hand, here a warning is returned. That probably works, but it is not clear from the doc.