Allow creation of prices in Python bindings

Using the function gnc_price_create and book as a parameter, it is possible to create the new GncPrice object. This will remove the necessity of cloning the prices from existing ones in Python scripts.
This commit is contained in:
Tomas Schlosser 2018-03-16 14:25:46 +01:00 committed by GitHub
parent 9b8901248c
commit 01bb298504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,7 @@ class GncPrice(GnuCashCoreClass):
See also http://code.gnucash.org/docs/head/group__Price.html
'''
pass
_new_instance = 'gnc_price_create'
GncPrice.add_methods_with_prefix('gnc_price_')