Nextcloud Connector: Cloud Storage Sync for ownCloud and WebDAV (NAS, Synology)
by Aerya IT Solutions https://aerya.net$ 140.25
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Nextcloud Connector: Cloud Storage Sync for ownCloud and WebDAV (NAS, Synology)
Connect the folder tree of Cloud Storage Sync to your Nextcloud, ownCloud or any WebDAV server (NAS, Apache, Synology, QNAP) with an app password: no OAuth, no console to configure, ten minutes from install to the first file.
SHA-1 integrity check: the server refuses a corrupted upload
ETag conflict detection, rename and delete as move and trash
Tested on a real Nextcloud and a plain WebDAV server
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise with the data of a fictitious company.
on Odoo 18
no warnings
The problem
Odoo keeps attachments in its own filestore: quotations, invoices, scans, contracts. The people who need those files every day (the accountant, the sales team, the auditor) work in a shared folder on Nextcloud, ownCloud or a NAS, and ask for the same PDF again and again.
Copying files by hand does not last. A script that uploads them breaks on large files, on a flaky connection, and when someone edits the file on both sides.
What the module does
It connects the folder tree of Cloud Storage Sync to your Nextcloud, ownCloud or any WebDAV server (NAS, Apache, Synology, QNAP). It signs in with an app password, so there is no OAuth and no console to configure. Odoo attachments are mirrored into the folders you described with rules, in the background. Big files go up in chunks, and an upload that is cut resumes where it stopped.
How it works, step by step
- Install. The module needs Cloud Storage Sync Base (aerya_cloud_base).
- Create an app password. In Nextcloud or ownCloud: Settings > Security > Devices & sessions. Never use the account password.
- Create the account. In Odoo: Cloud Storage > Accounts > New. Choose the provider "Nextcloud / ownCloud / WebDAV", the Server Type, the Server URL (the address you open in the browser), the User and the App Password.
- Test Connection. Click the button: Odoo signs in and reports what it found.
- Add folder rules. Cloud Storage > Folder Rules: a model, a filter and a folder template, for example Customers/{partner_id.name}/{date_order:%Y-%m}.
- Send existing files. To send what is already in Odoo, create a migration (Cloud Storage > Migrations). A dry run counts the files first.
Ten minutes from install to the first file
The connection fields
Server Type is Nextcloud, ownCloud or Other WebDAV server. The URL of a Nextcloud or ownCloud is the address you open in the browser, and for other servers the full WebDAV address of the folder to use.
"Check Certificate" is on by default. The password is a field that only Cloud Storage managers can read, and it is never written to the log.

Big files go in chunks and resume
A cut connection does not start over
On Nextcloud and ownCloud, files above the chunk size (8 MB by default, 5 MB to 5 GB) use the servers' chunked upload. A reset connection resumes at the first chunk not accepted, and the server checks the SHA-1 of the result, so a corrupted upload is refused.
Other WebDAV servers get one PUT per file, without chunking, with the same ETag conflict check.

What the server sees
The folders you described
The tree in Nextcloud follows your folder rules, with the file names from Odoo. Renaming an attachment moves the file; deleting it moves the copy to .odoo-trash or deletes it, as the account says.
When someone changed the file on the server since the last sync, the ETag differs and the conflict policy of the account decides: keep both, Odoo wins, or the cloud wins.

When something goes wrong
- A wrong password, a server that is down, a certificate error or an exceeded quota (507) stops the run without using up attempts and without losing files.
- Too many requests (429) or an unavailable server (503) make Odoo wait for the time the server asks.
- A name the server rejects, or a refused file (403), fails that file only.
- Redirects are not followed: the error names the address to enter.
What it does not do
- No OAuth sign-in: the connection uses an app password.
- No pulling of files from the server into Odoo.
- No file locks and no public share links.
- Odoo keeps its own copy of every file: the module mirrors, it does not move the filestore. Uninstalling it never loses data.
Requirements
| Odoo versions | 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Where it runs | Odoo.sh and on-premise (Python module) |
| Modules of ours | Cloud Storage Sync Base (aerya_cloud_base) |
| Server | Nextcloud, ownCloud or a WebDAV server |
| Languages | English, Spanish and Romanian |
Questions
Which servers work?
Nextcloud and ownCloud, with chunked upload, and any WebDAV server (NAS, Apache, Synology, QNAP), with one upload per file.
Do I use my Nextcloud password?
No. Create an app password in Settings > Security. It can be revoked without changing the account password.
What if the connection drops during a big upload?
The upload resumes at the first chunk the server did not accept.
What happens when I delete an attachment in Odoo?
The copy on the server is moved to .odoo-trash, deleted, or kept, as the account is set up.
What if both sides changed the file?
The conflict policy of the account decides: keep both, Odoo wins, or cloud wins.
Can I test it before sending files?
Yes. Test Connection checks the sign-in, and a migration starts with a dry run that counts the files.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 18, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Aerya IT Solutions · Developed in the European Union · aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 2591 |
| Technical Name |
aerya_cloud_webdav |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module