[Erp5-dev] own getTitle - different solution
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Fri Mar 28 16:53:27 CET 2008
Hello,
On 2008-03-28, 16:45:45
Tomasz Brzezina <tomasz at brzezina.pl> wrote:
> Tomasz Brzezina pisze:
> > I need to mask getTitle for my own portal_type - in the same way
> > like getTitle in Person - How to?
> I wonder if there's other solution
>
> how to attach script to save button -
>
> In my case Title can be changed only if some fields are changed AND
> SAVED. So maybe instead of changing getter the better option is to
> set value of title everytime when user saves changes
For this you shall use interaction workflow, AFAIK.
http://www.erp5.org/HowToUseAndDefineInteractionWorkflows
Solution provided below is good for "static" title - that on, which
wouldn't change on object lifetime.
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