Monday, October 9, 2023
1 change
Enhancements to existing features
Documents now has a dedicated Trash area for archived files, replacing the old archived filter and making recovery easier. Deleted folder contents move to Trash, archived items can be restored with their workspaces, and trashed documents are automatically removed after the configured retention period.
Original PR description
This commit introduces the following changes : - Introduced a new Trash folder(fake folder) within the documents views. This folder is designed to contain any file that has been archived from any…
This commit introduces the following changes : - Introduced a new Trash folder(fake folder) within the documents views. This folder is designed to contain any file that has been archived from any other folder. - The archived filter has been removed. We now encourage users to utilize the Trash folder for this purpose instead. - Documents that are archived will now be automatically deleted after a span of 30 days. - When a user opts to delete a folder, the system will no longer offer the option to move its files to the parent folder. Instead, all the content from the deleted folder will be moved directly to the trash. - In the event a folder is deleted, it will be archived and will no longer be displayed in the search panel. The documents from this folder will be relocated to the trash, and any child folders will be archived in the same manner. - If a folder is archived and doesn't have any documents (be it active or inactive) linked to it, nor any child folder (that respect the same rules), the folder will be automatically deleted. - When a document is restored from the Trash, and its original folder has been archived, the system will restore the folder as well. If this folder had a parent, it will be restored as its child. If not, it will be placed as a root folder. - It's no longer possible to manually delete archived folders from the folder list view. This change was implemented since these archived folders might still have connections with archived documents in the Trash. As a result, the delete action has been made invisible for these folders. - A new filter for archived folders has been added to the folder list views for better user navigation. - It is possible to restore workspaces from the workspace list/form view. When restoring a workspace, all the documents and children folders linked to that workspace are restored as well. Remark: The Trash folder, labeled as a 'fake' folder, has been assigned an id="Trash". It isn't linked to any specific model but is designed to allow the search model to fetch inactive files. The decision to assign it an id="Trash" was influenced by the searchPanel's requirement for unique rootIds. TaskId-3046516 Co-authored-by: William Braeckman ( <wbr@odoo.com> )