Odoo - prevent button from closing wizard
问题 I have a transient model that serves as a dialog. In my form view I have a button like this: <footer states="partnerId"> <button name="check_tax_id" string="Tovább" type="object"/> </footer> The button invokes this function (I can confirm it actually invokes): @api.one def check_tax_id(self, context=None): self.state = "partnerDetails" return None; My problem is that the dialog window is closed immediately once I click this button! What am I doing wrong? 回答1: Solution 0 @api.multi def check