Not update a field that is called with on_change and clik "OK" button
In current dev version (not 5.2) I detected:
1 - In a model that has o2m (ex account.invoice and lines), edit a line.
2 - Change an input value (thas has on_change_) and after that click "OK" button to close and save (not press "tab" o click to other field).
3 - In our case the on_change_ method change other fields and don't save it in database.
Example:
def on_change_gross_unit_price(self):
self.unit_price = Decimal(0)
1 - Edit gross_unit_price field and click "Ok" button. The on_change_gross_unit_price is called.
2 - The value unit_price that we set inside the on_change_gross_unit_price is not saved it in the account.invoice.line (= not updated).
Not reproduce GTK client. Only in SAO.