Skip to Content
Menu
This question has been flagged
5 Replies
6427 Views

Hi, I've noticed I can not delete products I created, but I can remove products created by other users. I have all maximum access rights activated. The message is after trying to delete: "Access Denied

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Message, Operation: unlink)"

Is there a solution, workaround or wathever, or is an unresolved bug? thanks

Avatar
Discard
Best Answer

under tab procurements uncheck the active check box. This will hide your product. Whenever you want to see this product go to filter advanced -> active "is false"

Avatar
Discard
Best Answer

If all the access rights are there and still if you can not delete products then there might be reference with other object like Sales, Purchase, Warehouse, Invoice, etc.
We have to remove all references in sequence first.

Thanks,
Acespritech Solutions Pvt. Ltd.
Mail: info@acespritech.com
Skype: acespritech

Avatar
Discard
Best Answer

This was a bug as reported here - bugs.launchpad.net/openobject-addons/+bug/1098607

It has been fixed in newer versions.

Avatar
Discard
Best Answer

You probably get these error messages when you want to delete a product which has been used in an order (either purchase or sale).

Technically you can delete these products when you go to the database itself (postgreSQL) and remove it from the database using commands on the database itself.

An option might be, that you untick the options 'Can be Sold' and 'Can be bought', so they do not appear anymore on your list of products.

Given your message you have all rights, check Settings -> Security -> Access Controls List, and search for product. Make sure at least one of your roles has the right to delete it.

I did create a product, did other things and then tried to delete the product. I had no issues (as admin).

Avatar
Discard
Author Best Answer

Thanks for your answers. My point was why I can delete products with any other user (with the right access rights) but I can not if I login with the user used to create them. The products are just created minutes ago, for testing, and the don't belong to any order. I know I can delete them with SQL, and make them not visible unticking the Can be sold/purchased checkboxes, but that is not needed if I login as a user who didn't create the the products. I'll be wainting others opinions or anwers about this issue. Thanks.

Avatar
Discard

Oriol, I have been able to create a product, do other things, than go to the product and delete it. I think that somehow it is referenced.Or you do not have the rights, as by default only managers of Sales, Purchase and Warehouse are allowed to delete products.