Discussion:
[Erp5-dev] delete_action problem, where is that workflow?
Lukasz Nowak
2006-09-19 14:02:15 UTC
Permalink
Hello,

In:
https://svn.erp5.org/repos/public/erp5/trunk/products/ERP5/bootstrap/erp5_core/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.

Bye,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 392 10 60 int 37 fax: +48 32 392 10 61
https://ssl.ventis.com.pl/keys/lukasz.nowak.pub.asc
``Use the Source, Luke...''
Romain Courteaud
2006-09-19 14:09:23 UTC
Permalink
Post by Lukasz Nowak
Hello,
Hello,
Post by Lukasz Nowak
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
Lukasz Nowak
2006-09-19 14:12:33 UTC
Permalink
Hello,
Post by Romain Courteaud
Currently, we didn't add yet a delete_action transition in the default
workflows.
Well, so I have to wait or add delete_action workflow action. Thanks for info.

Bye,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 392 10 60 int 37 fax: +48 32 392 10 61
https://ssl.ventis.com.pl/keys/lukasz.nowak.pub.asc
``Use the Source, Luke...''
Jean-Paul Smets
2006-09-19 14:32:30 UTC
Permalink
Post by Lukasz Nowak
Hello,
https://svn.erp5.org/repos/public/erp5/trunk/products/ERP5/bootstrap/erp5
_core/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.
Bye,
Luke
Hi,

Here is the rule we are going towards after much discusion:
1- objects which are handled by workflows can not be deleted: deletion is
part of the workflow (ie. the document lifecycle) and must therefore be
implemented by a workflow action which may for example move the object to
an "archived" state (invisible)
2- objects which are not handled by workflows can be deleted

Example for 1-: accounting transaction, order
Example for 2-: accounting transaction line, phone number

JPS.
--
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
Loading...