Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: delete files in quality issues

Brad Barbin86be8fd51052
diff --git a/apps/erp/app/components/Documents.tsx b/apps/erp/app/components/Documents.tsx
index 5ccbaf2e39..6c072caa81 100644
--- a/apps/erp/app/components/Documents.tsx
+++ b/apps/erp/app/components/Documents.tsx
@@ -401,7 +401,7 @@ const Documents = ({
Download
</DropdownMenuItem>
<DropdownMenuItem
- disabled={!canDelete || file.bucket !== writeBucket}
+ disabled={!canDelete}
onClick={() => deleteFile(file)}
destructive
>