Daily updates from Odoo
Friday, December 7, 2018
1 change · master
Code cleanup and technical improvements
The Documents app was reworked around a dedicated document record, making it easier to support document-specific features without overloading file attachment records. Folder-based access and attachment handling were tightened so documents better inherit the right permissions and cleanup behavior.
Original PR description
Refactor of the module `documents`: - The module is now based on its own record `documents.document` and keeps all its v12.0 features. - Documents now have an attachment_id (`ir.attachment`) that is set only when it is used to store binary content (not for document requests and URL's) - `folder_id` is now a required field and security rules are based on their company and access groups. - Document's attachments are now attached (`res_model`/`id`) to their documents by default, so that they inherit their security rules and the native attachment garbage collection. related to: odoo/odoo#28563 task: #1908896