[Erp5-dev] redirection from workflow scripts
Jean-Paul Smets
jp at nexedi.com
Mon Oct 2 14:07:44 CEST 2006
Le lundi 2 octobre 2006 13:27, Jérôme Perrin a écrit :
> Le Mardi 26 Septembre 2006 20:29, Bartek Gorny a écrit :
> > Hello
> >
> > Is it possible to send a redirect from interaction workflow script?
>
> I don't think so.
> You can try:
> raise 'Redirect', url
> but the transaction will be aborted, which is probably not what you want.
I would disagree with the idea of sending a redirect from interaction
workflow. It is not their purpose at all.
> > The point is that in certain conditions I need to create a new object,
> > instead of editing the current one, and the best thing would be to
> > immediately redirect the user to the new one.
>
> Probably it's better to make an explicit action on your portal type that
> will create the new object.
Yes.
--
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
Nexedi: Consulting and Development of Libre / Open Source Software
http://www.nexedi.com
ERP5: Libre/ Open Source ERP Software for small and medium companies
http://www.erp5.org
Rentalinux: Desktop Linux Server
http://www.rentalinux.com
More information about the Erp5-dev
mailing list