What happens is that I have client invoices, I can enter any invoice and in the action button I can delete but I get that something that is already published cannot be deleted but they can make it a draft and then delete it, how can I restrict the action when they restore it to draft and when they are in draft and want to delete, the text also appears that you cannot delete the invoice. I would be very grateful if you can help me with this or how I could do something by code.