diff --git a/bindings/python/gnucash_core.py b/bindings/python/gnucash_core.py index 993ad8919b..6ee86786f9 100644 --- a/bindings/python/gnucash_core.py +++ b/bindings/python/gnucash_core.py @@ -822,9 +822,9 @@ class Transaction(GnuCashCoreClass): return self.GetSplitList().pop(n) def GetInvoiceFromTxn(self): - from gnucash.gnucash_business import Transaction + from gnucash.gnucash_business import Invoice return self.do_lookup_create_oo_instance( - gncInvoiceGetInvoiceFromTxn, Transaction ) + gncInvoiceGetInvoiceFromTxn, Invoice ) def __eq__(self, other): return self.Equal(other, True, False, False, False)