mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 13:09:41 -06:00
Fix issue with Python bindings.
Any Entry.functions were returning <Swig Objects> instead of instances. Also removed invalid items from entry_dict in gnucash_business.py. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23661 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5016478de8
commit
2ee26b38a5
@ -351,12 +351,10 @@ entry_dict = {
|
||||
'GetBillPrice': GncNumeric,
|
||||
'GetBillTaxTable': TaxTable,
|
||||
'Copy': Entry,
|
||||
'ReturnValue': GncNumeric,
|
||||
'ReturnDiscountValue': GncNumeric,
|
||||
'ReturnTaxValue': GncNumeric,
|
||||
'GetInvoice': Invoice,
|
||||
'GetBill': Invoice
|
||||
}
|
||||
methods_return_instance(Entry, entry_dict)
|
||||
Entry.decorate_functions(
|
||||
decorate_to_return_instance_instead_of_owner,
|
||||
'GetBillTo' )
|
||||
|
Loading…
Reference in New Issue
Block a user