Force readonly for deletedAt field (#12840)

Fixes https://github.com/twentyhq/twenty/issues/12839

## Context
We now force readonly mode for deletedAt datepicker as permissions don't
handle well this use case. The frontend should call softDelete endpoint
in this case. For a user, they should select the record and click on the
trash icon instead

<img width="467" alt="Screenshot 2025-06-24 at 17 30 03"
src="https://github.com/user-attachments/assets/0a8a0709-305b-440f-91c2-d5e3f23ca213"
/>
This commit is contained in:
Weiko
2025-06-24 17:34:17 +02:00
committed by GitHub
parent d7c6806ad4
commit 3cef6c9048

View File

@ -151,7 +151,9 @@ export const RecordDetailRelationRecordsListItem = ({
isFieldCellSupported(fieldMetadataItem, objectMetadataItems) &&
fieldMetadataItem.id !==
relationObjectMetadataItem.labelIdentifierFieldMetadataId &&
fieldMetadataItem.id !== relationFieldMetadataId,
fieldMetadataItem.id !== relationFieldMetadataId &&
fieldMetadataItem.name !== 'createdAt' &&
fieldMetadataItem.name !== 'deletedAt',
)
.sort();