Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete Attachment #8618

Closed
1 of 6 tasks
spitdavid opened this issue Dec 2, 2024 · 6 comments
Closed
1 of 6 tasks

Cannot delete Attachment #8618

spitdavid opened this issue Dec 2, 2024 · 6 comments
Labels
bug Identifies a bug which needs to be addressed

Comments

@spitdavid
Copy link

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

When I try to delete Attachement which I accidentally uploaded. I get error code ,,Action Prohibited-Delete operation not allowed”

Image

Steps to Reproduce

Upload attachement to part, then try to delete it.
But the problem didn’t occur in Demo.

Expected behaviour

To delete the attachment.

Deployment Method

  • Docker
  • Package
  • Bare metal
  • Other - added info in Steps to Reproduce

Version Information

Version Information:

InvenTree-Version: 0.16.4
Django Version: 4.2.15

Database: sqlite3
Debug-Mode: False
Deployed using Docker: False
Platform: Linux-5.15.0-125-generic-x86_64-with-glibc2.31
Installer: None

Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'Brother Labels', 'slug': 'brother', 'version': '1.0.0'}]

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

@spitdavid spitdavid added bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team labels Dec 2, 2024
@matmair
Copy link
Member

matmair commented Dec 2, 2024

@spitdavid please update to the current version and try to reproduce again

@matmair matmair removed the triage:not-checked Item was not checked by the core team label Dec 2, 2024
@spitdavid
Copy link
Author

@spitdavid please update to the current version and try to reproduce again

Update didn't help.

@matmair
Copy link
Member

matmair commented Dec 5, 2024

Which deployment method did you use?

@spitdavid
Copy link
Author

Which deployment method did you use?

bare metal

@smithcv
Copy link

smithcv commented Dec 5, 2024

I was able to reproduce with the old UI however delete attachment does work in the new UI. I suspect the confirmation has something to do with it. Workaround in 0.16.9 would be to go to the platform UI. https://<your_inventree_link>/platform/ find the part and remove the attachment.

@matmair matmair added old user interface and removed question This is a question labels Dec 5, 2024
@matmair
Copy link
Member

matmair commented Dec 5, 2024

Thank you for the reproduction @smithcv !
@spitdavid we are removing CUI after 0.17.x is released (see #8384 and the blog entry) - which will be pretty soon. So I think we will not address this and point to the solution provided by @smithcv

@SchrodingersGat SchrodingersGat closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed
Projects
None yet
Development

No branches or pull requests

4 participants