[Erp5-dev] Username lost when installing a Person object from bt5 file

Jérôme Perrin jerome at nexedi.com
Mon Jan 8 21:30:52 CET 2007


Le Lundi 08 Janvier 2007 13:52, Yoshinori Okuji a écrit :
> The first question is whether it is required to call manager_afterClone for
> an object copied from a business template. I guess this is not necessary.
> If I am correct, you can simply remove the calling. But I may be wrong.

Maybe we only need to call reindexObject.

> If you cannot remove it, we need a way to bypass reseting properties (i.e.
> not to call a script specified by a portal type), by passing a parameter to
> the method, for example.

manage_afterClone on objects created by business template is a general 
problem, because it will delete workflow_history attribute, thus reset all 
workflow states for the object.

Jérome



More information about the Erp5-dev mailing list