Odoo - prevent button from closing wizard

后端 未结 6 1958
死守一世寂寞
死守一世寂寞 2020-12-29 11:54

I have a transient model that serves as a dialog. In my form view I have a button like this:

6条回答
  •  独厮守ぢ
    2020-12-29 12:22

    In my case this code works.

    @api.multi
    def test(self):
        l = logging.getLogger()
        l.warn("xD")
        return {
            "type": "ir.actions.do_nothing",
        }
    

提交回复
热议问题