2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

hide delete button

This commit is contained in:
Matthias
2022-03-30 01:30:32 +02:00
parent d068b0a064
commit 44239cba08

View File

@ -40,6 +40,11 @@ class CompanyAdmin(ImportExportModelAdmin):
exclude = ('is_deleted',)
def has_delete_permission(self, request, obj=None):
if obj and obj.is_deleted:
return False
return True
class SupplierPartResource(ModelResource):
"""