API onchange Odoo 10.0
I have a methad that triggers onchange like this:
The thing is that this function alters some fields that aren't in the form and, when I create a new record, this works, but, when I update the record and change some of the fields that triggers the method, it doesn't save the fields in the database.
I checked, and the method works and Its been called when I update the record, but the problem is that it doesn't store the values.
What is the problem here?