[Erp5-dev] Project isNotAccountable ?

Boris Kocherov bk at raskon.org
Sat Mar 26 13:46:00 CET 2011


Hi,

During the indexation:

2011-03-26T03:36:27 WARNING SQLCatalog Failed to call method isAccountable on
<Products.ERP5Catalog.CatalogTool.IndexableObjectWrapper for
/erp5/project_module/11/1>
Traceback (most recent call last):
File "/home/erp5/erp5-buildout/parts/Products/ZSQLCatalog/SQLCatalog.py",
line 1594, in _catalogObjectList
value = value()
File "/home/erp5/erp5-buildout/parts/Products/ERP5/Document/DeliveryLine.py",
line 110, in isAccountable
return self.getParentValue().isAccountable() and (not self.hasCellContent())
AttributeError: isAccountable

As i understand the project line should be  not accountable so i've made the
patch:
https://www.raskon.org/hg/erp5/trunk-patched/.hg/patches/file/2a5d28364ecf/fix/Project_isAccountable.patch


May be portal type Project should inherit from class Order?  What's your
opinion?

Best regards,
    Boris Kocherov

-- 
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.



More information about the Erp5-dev mailing list