I have a transient model that serves as a dialog. In my form view I have a button like this:
In my case this code works.
@api.multi def test(self): l = logging.getLogger() l.warn("xD") return { "type": "ir.actions.do_nothing", }