mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
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:
parent
9b8901248c
commit
01bb298504
@ -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_')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user