[Erp5-dev] delete_action problem, where is that workflow?
Romain Courteaud
romain at nexedi.com
Tue Sep 19 16:09:23 CEST 2006
Le Mardi 19 Septembre 2006 16:02, Lukasz Nowak a écrit :
> Hello,
Hello,
> In:
> https://svn.erp5.org/repos/public/erp5/trunk/products/ERP5/bootstrap/erp5_c
>ore/SkinTemplateItem/portal_skins/erp5_core/Folder_delete.xml
>
> delete_action action workflow is invoked, but I'm not able to find any
> workflow, which provides such action, and so deleting of objects do not
> work in ERP5 almost everywhere.
We modified the "Trash" button behaviour.
If an object has a workflow, user can not delete the object, but can only
change its state to "deleted", by calling a transition "delete". Of course,
those transition/state have to be defined on the workflow. If not, the object
is simply not affected by the action.
If an object has no workflow related, it can be deleted by the user (if the
user has the "Delete objects" permission on the container level of course).
Currently, we didn't add yet a delete_action transition in the default
workflows.
Romain
More information about the Erp5-dev
mailing list