(self)
return True
Remove created account move entry and set state to cancelled.
Remove created account move entry and set state to cancelled.
Remove created account move entry and set state to cancelled .
def button_unpost(self):
        """Remove created account move entry and set state to cancelled."""
        self.mapped("move_id").with_context(force_delete=True).unlink()
        self.write({"state": "cancelled"})
        return True
def button_unpost ( self ) : self . mapped ( "move_id" ) . with_context ( force_delete = True ) . unlink ( ) self . write ( { "state" : "cancelled" } ) return True