[Erp5-dev] can not view accounting transactions

Jérôme Perrin jerome at nexedi.com
Tue Jan 10 11:07:55 CET 2006


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 

and this bug happens :  
  http://www.zope.org/Collectors/CMF/171
( which has been fixed :
 http://svn.zope.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

-- 
Jérome



More information about the Erp5-dev mailing list