[Erp5-dev] Setting operation (or any other category) as resource on Invoice Line is a problem...?
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Wed Nov 7 16:43:06 CET 2007
Hello,
On 2007-11-06, 19:18:17
Jérome Perrin <jerome at nexedi.com> wrote:
(...)
> hello,
>
> resource_title is not a standard accessor. This is in property sheet
> Amount.py :
(...)
>
> This means that getResourceTitle accessor is somehow equivalent to
> getResourceValue(portal_type=portal.getPortalResourceTypeList()).getTitle()
>
> 'operation' is a Category, which is not in resource portal type group.
>
> The question is: do we still need this property definition ?
> This property sheet is here since the first revision, I guess it was
> added because at that time 'title' accessors were not generated for
> categories.
You're right as always :)
But I've spotted some kind of strange problem. To test what you
provided above I've copied ERP5/PropertySheet/Amount.py into
INSTANCE_HOME/PropertySheet, commented out resource_title key and...it
hadn't worked. But while editing directly ERP5/PropertySheet/Amount.py
all worked well.
What could be a problem?
Revision: 17264
Regards,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
More information about the Erp5-dev
mailing list