Hi all,
I'm inheriting hr in my custom model and intend to extend toggle_active() which is is defined in root model.
@api.model
def toggle_active(self):
_logger.info('Executing toggle_active')
record=super(hr_employe_custom_model,self).toggle_active()
return record
The function is not called when toggling the active state via the button. The obvious workaround with
@api.onchange('active')def _onchange_active(self):
is not executed either. What do I miss here?
Thanks & Regards, Matthias