[Erp5-dev] Read only property

Łukasz K. Nowak lukasz.nowak at ventis.com.pl
Thu May 31 12:15:13 CEST 2007


Hello,

I'm using property 'trade_code' defined in property sheet. It is
attached to Product and Supply Line. For Products it is fetched from it
default_supply_line and forms are setting it using
my_default_supply_line_trade_code. Using trick from wiki[1] I'm able to
have trade_code on Product, it is working in portal catalog and be
fetched product_object.getTradeCode(). But to be able to use
'alt_accessor_id' trade_code cannot be set on Product. Well - it won't
be in most times, but I'd like to have it read-only on Product portal
type and read-write on Supply Line. Is it possible to archive? AFAIK
'mode' is ignored, am I right?

Thanks,
Luke

[1] http://www.erp5.org/HowToUsePropertySheets

-- 
Ł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...''





More information about the Erp5-dev mailing list