I would like to use api.onchange as a trigger because I don't want to inherit base fields and use api.depends.
A simple example:
class pos_session2(models.Model):
_inherit = 'pos.session'
@api.one #with or without doesn't make any difference
@api.onchange('start_at','stop_at')
def _session_costs_control(self):
_logger.info('Id = %s', self.id)
I get no result (or errors) in log.
How should I call the method?
Edit: Temporary solved creating a new check field on the same table and calling api.depends.