Get the values during saving data in order to update some records from another model, just to test I've tried this:
@api.multi
def write(self, vals):
_logger.debug('* ONE = %s', vals.get('field_one'))
_logger.debug('* TWO = %s', vals.get('field_two'))
return super(MyModule, self).write(vals)
only field_two is computed on change depending on field_one, the onchange works ok but when click save, I can only get field_one with the new data, but field_two is NONE on the log, I've tested other ways with diferent models and realized that only writes fields that has been changed on the fly, is it posible to get ALL data fields? Am i right by using WRITE() or should I use POST()? how would it be?