Discussion:
[Fwd: [Erp5-dev] currency module]
Shrenik Bhura
2005-08-29 06:34:41 UTC
Permalink
Got it. Missing script in
portal_skins/erp5_accounting/CurrencyModule_getCurrencyItemList

-SB


-------- Forwarded Message --------
From: Shrenik Bhura <shrenik.bhura at intelliant.net>
Reply-To: shrenik.bhura at intelliant.net
To: ERP5 Dev <erp5-dev at erp5.org>
Subject: [Erp5-dev] currency module
Date: Mon, 29 Aug 2005 11:36:18 +0530
I believe this - python:here.CurrencyModule_getCurrencyItemList()

has replaced this - python:[('','')]+map(lambda x:(x.id,'currency/%s' %
x.id),here.currency.objectValues())

to fetch currency title list.

But it does not work in my case. If I replace the older expression, it
does. Has something been left to be checked-in or is it some
re-factoring exercise in process?

- SB




_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20050829/8457b8ae/attachment.htm>
Alexandre Boeglin
2005-08-29 07:49:06 UTC
Permalink
Post by Shrenik Bhura
Got it. Missing script in
portal_skins/erp5_accounting/CurrencyModule_getCurrencyItemList
Hello,

The currency module is part of erp5_core, not accounting. the
CurrencyModule_getCurrencyItemList script was added on the
2005-08-18. To get it, you can try to upgrade your erp5_core
business template to a more recent version. Else, you can create
this script manually, which currently contains :

result = []
for currency in context.getPortalObject().currency_module.objectValues() :
result.append((currency.id, 'currency_module/%s' % currency.id))
return result


Regards,
Alex

Loading...