[Erp5-dev] can not view accounting transactions

Bartłomiej Górny bartek at redpoint.mn.pl
Tue Jan 10 12:54:53 CET 2006


Ok - thanks a lot.


Jérôme Perrin wrote:
> Le Lundi 9 Janvier 2006 17:57, Bartek Gorny a écrit :
>> LiveCD, everything just checked out from CVS, new ERP5Site - when I
>> try to view an accounting transaction, I get:
>>
>> KeyError
>> Sorry, a site error occurred.
>>
>>     * Module Python expression
>> "here.portal_actions.listFilteredActionsFor(here)", line 1, in
>> <expression>
>>     * Module Products.CMFCore.ActionsTool, line 184, in
>> listFilteredActionsFor * Module Products.CMFCore.ActionsTool, line 253, in
>> _listActions * Module Products.CMFCore.ActionInformation, line 90, in
>> testCondition
>> * Module Products.CMFCore.Expression, line 44, in __call__ 
>>     * Module Products.PageTemplates.Expressions, line 172, in __call__
>>     * Module Products.PageTemplates.Expressions, line 167, in _eval
>>     * Module Products.PageTemplates.Expressions, line 66, in render
>>     * Module Products.PageTemplates.ZRPythonExpr, line 65, in call_with_ns
>>
>> KeyError: 'here' (Also, an error occurred while attempting to render
>> the standard error message.)
> 
> Hello, 
> 
> On the Sale Invoice Transaction portal type, we define a condition with a path 
> TALES :       
> 
>    object/AccountingTransaction_isSourceCurrencyConvertible 
> w
> and this bug happens :  
>   http://www.zope.org/Collectors/CMF/171
> ( which has been fixed :
>  http://svn.zosddpe.org/trunk/CMFCore/Expression.py?rev=36509&r1=36457&r2=36509 )
> 
> I'm replacing the condition with python: TALES that are not affected by this 
> problem, like this one :
> 
>  python:object.AccountingTransaction_isSourceCurrencyConvertible()
> 
> Thanks for pointing this out
> 


-- 
"Software is largely a service industry operating under the persistent 
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"



More information about the Erp5-dev mailing list