[Erp5-dev] Project isNotAccountable ?
Kazuhiko Shiozaki
kazuhiko at nexedi.com
Mon Mar 28 13:08:04 CEST 2011
Hi Boris,
On 26/03/2011 13:46, Boris Kocherov wrote:
> 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?
Thanks for pointing it out.
Project is just a node, like Person, Organisation etc. and ideally it
should inherit from Node superclass. So I applied your proposed patch
above in r44660.
Thanks again!
--
Kazuhiko Shiozaki, Nexedi SA Senior Consultant
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://www.erp5.org
More information about the Erp5-dev
mailing list