Repository navigation
Conversation
Adds a Documents tab on partners with a folder of an external file system (fs_storage, e.g. a Google Drive Shared Drive served over WebDAV by rclone). - Folders are created on demand and filed by salesperson: <salesperson>/<ref> - <name> (_Unassigned without salesperson). - Contacts of a company get a subfolder of the company folder. - A queue job moves the folders when the salesperson or the company changes. - Works around fs_folder reading fs.storage without sudo on folder creation. Assisted-by: claude-opus-5-5, medium, claude-code
[Medium impact] The PR appears safe to merge; the previous finding is addressed and no new actionable issues were found. Reviews (2) · Last reviewed commit: "[FIX] partner_fs_folder: update the link..." · Reviewed by Greptile |
… folder The links of the subfolders were found through the company of the contacts. A contact detached from the company (or moved to another one) before the job moving the company folder ran kept a link to the old path: its folder was moved with the company folder, and its own job then found nothing to move. Assisted-by: claude-opus-5-5, medium, claude-code
|
@Danielgergely |
2 similar comments
|
@Danielgergely |
|
@Danielgergely |
Purpose
Fundraising needs a place to keep any kind of document about donors and sponsors (contracts, notes, pictures…), shared with the team in Google Drive and reachable from the partner in Odoo.
What it does
partner_fs_folder(depends on OCAfs_folderandqueue_job).fs_folderbug: folder creation readsfs.storagewith the user's rights, so non-admin users get an AccessError (only over HTTP, from the second request on). Users must not get read access onfs.storage(it holds the credentials), so the action checks write access on the partner and then uses sudo. Candidate for an OCA fix.Google Drive
There is no Google Drive backend in OCA
storage. Drive is reached throughrclone serve webdavon localhost (protocolwebdav). Setup with a service account and a Shared Drive is inreadme/CONFIGURE.md.Known limits:
Tests
Staging test plan
service_account_fileandteam_drive,rclone serve webdavas a systemd service on 127.0.0.1.webdav, check method List File, options withtimeout: 60, linked to the field Documents Folder.🤖 Generated with Claude Code