See your __init__() method of the Invoices class.
__init__(self,parent,)
Remove the comma after the word parent.