Monday, March 7, 2022
1 change
Enhancements to existing features
Documents can now have access rules set directly on each file, making it easier to decide who can read or edit sensitive business documents. Files can either follow their workspace rules or use specific read, write, or owner-only access, giving teams clearer control over document sharing.
Original PR description
== From https://github.com/odoo/enterprise/pull/16787 == *documents_account,documents_hr,documents_product,documents_project, documents_sign,documents_spreadsheet This commit makes the following…
== From https://github.com/odoo/enterprise/pull/16787 == *documents_account,documents_hr,documents_product,documents_project, documents_sign,documents_spreadsheet This commit makes the following changes: - Add a more granular option to control the access to documents: the new `access` field allows a per-document control of the access rights. - `folder_id` is no longer a required field on `documents.document` and on `documents.share`. - Spreadsheets do not have default folders anymore and their `access` defaults as `owner`. Task ID: 2257514 Documents now have one more `access` option: `workspace`, this is the default value when creating/adding a file into a folder and signifies that the access rules are those of the folder. `readonly` and `write` now give their respective access regardless of the user's rights on the folder. This is to make sure that the statement `Anyone can read` or `Anyone can write` are actually correct. For old behaviour the user has to use the `workspace` access. This pr also speeds up some tests from documents, see commits