Hello,

in Python bindings the method 'Accounts.lookup_by_code()' has no
return value information, so a raw SWIG object is returned instead of
an Account instance.

The patch below fixes the issue. Regards.


-- Daniele


--- src/optional/python-bindings/gnucash_core.py        (revision 19381)
+++ src/optional/python-bindings/gnucash_core.py        (working copy)
@@ -450,6 +450,7 @@
                     'get_parent' : Account,
                     'get_root' : Account,
                     'nth_child' : Account,
+                    'lookup_by_code' : Account,
                     'lookup_by_name' : Account,
                     'lookup_by_full_name' : Account,
                     'FindTransByDesc' : Transaction,
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to