Commit 0b7e36f0 authored by Kevin Deldycke's avatar Kevin Deldycke

Update currency module id


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4605 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 549db667
......@@ -328,7 +328,7 @@ class BaobabConduit(ERP5Conduit):
# no previous inventory found, create one
if new_inventory == None:
new_inventory = object.newContent(portal_type = 'Cash Inventory')
new_inventory.setPriceCurrency('currency/' + currency_id)
new_inventory.setPriceCurrency('currency_module/' + currency_id)
new_inventory.setDestination(vault_path)
subobject = new_inventory
......@@ -480,7 +480,7 @@ class BaobabConduit(ERP5Conduit):
# verify or add the currency
current_currency_id = bank_account_object.getPriceCurrencyId()
if current_currency_id in (None, ''):
bank_account_object.setPriceCurrency('currency/' + currency_id)
bank_account_object.setPriceCurrency('currency_module/' + currency_id)
elif current_currency_id != currency_id:
LOG( 'BaobabConduit inconsistency:'
, 200
......@@ -607,7 +607,7 @@ class BaobabConduit(ERP5Conduit):
### BankAccount-related-properties functions
def editCompteDevise(self, document, value):
document.setPriceCurrency('currency/' + value)
document.setPriceCurrency('currency_module/' + value)
def editCompteDateOuverture(self, document, value):
if document.getStopDate() in ('', None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment