[erp5_core] fixup document deletion dialog

Some document subobjects have a workflow, and so, can be only be deleted from some state
If the listbox does not display them, do not add the state filter parameter
4 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds