What is claimed is:1. An electric compressor to be mounted on a vehicle configured to compress a refrigerant and discharge the compressed refrigerant, comprising:An electric motor configured to drive the electric compressor,an inverter portion configured to control and drive the electric motor; andan inverter housing accommodating the inverter portion, the inverter portion including:a circuit board;a busbar fixed to the inverter housing and electrically connecting an external power supply to the circuit board;a noise reduction circuit mounted on the circuit board and configured to reduce a noise component contained in current flowing through the busbar;a first fastener fastening the circuit board to the inverter housing; anda second fastener fastening the busbar to the circuit board,wherein the circuit board includes:a first fastening hole through which the first fastener is inserted;a second fastening hole through which the second fastener is inserted; anda slit extending between the first fastening hole and the second fastening hole from a peripheral edge of the circuit board so as to have a length that is equal to or greater than a distance between the first fastening hole and the second fastening hole, whereinthe slit extends from the peripheral edge in a direction toward the noise reduction circuit,a distance between the first fastening hole and the noise reduction circuit is shorter than a distance between the second fastening hole and the noise reduction circuit, andthe first fastener electrically connects the circuit board as a ground of the noise reduction circuit to the inverter housing.2. The electric compressor according to claim 1, whereinan insulation member is interposed between the busbar and the inverter housing.3. The electric compressor according to claim 1, wherein the external power supply is a battery.4. The electric compressor according to claim 3, whereinthe circuit board has a first surface and a second surface,the noise reduction circuit is mounted on the first surface of the circuit board and includes a first filter circuit and a second filter circuit, anddirect current power from the battery is supplied to the circuit board of the inverter portion, and noise components contained in the direct current flowing through the busbar and the circuit board is reduced by the noise reduction circuit and absorbed into the inverter housing by the first fastener.