Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Documents
  3. Attachment WebDAV Sync v 16.0
  4. Sales Conditions FAQ

Attachment WebDAV Sync

by Awins
Odoo

$ 75.60

v 16.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
Apps / Awins / api_hub_webdav_sync

Attachment WebDAV Sync

An add-on that needs API Connector Hub: it copies the attachments of the models you pick to a WebDAV or Nextcloud folder, with the folder and file name built from the record.

Install›Configure›Use
/odoo/action-api_hub_webdav_sync.action_webdav_attachments · signed in as admin
Attachment WebDAV Sync in the Odoo backend
Odoo16.0, 17.0, 18.0, 19.0, 20.0
EditionsCommunity, Enterprise
Works withAPI Connector Hub, Base Setup
LicenceOPL-1, 29 EUR
Tests39 automated, run on every version
Moduleapi_hub_webdav_sync

The situation

Files attached to partners, tasks or invoices sit in the Odoo filestore. A team that keeps its documents in Nextcloud, or on any WebDAV share, copies them by hand: download the PDF from the chatter, open the right customer folder, upload it. When the folder tree is not kept up, the same contract exists twice under two names.

You add a rule per model. It names a connection from API Connector Hub, a records filter, and two templates such as /odoo/{company}/{model}/{res_name} and {date}_{name}. A cron every 15 minutes creates the missing folders with MKCOL and sends each file with PUT. Every attachment then shows its state, remote path and last error, and a file is never sent twice.

What it adds

WebDAV Rules
One rule per model
Model, records filter, connection, remote folder, file name, size limits and a start date. The first rule by sequence that matches an attachment takes it.
Without it: The Odoo Documents and attachment screens only store files in Odoo.
Remote Folder
Folder and file name templates
{company} {model} {res_name} {res_id} {year} {month} {day} for the folder; {name} {stem} {ext} {id} {res_name} {res_id} {model} {date} for the file. Slashes, colons and ".." are replaced, so a record called A/B: Big never adds a level.
Retry Failed
Retry queue
A timeout, 429 or 5xx waits as long as Retry Delay of the connection, doubled each time, up to Max Retries. 401, 403 and other refusals fail at once. Retry Failed puts them back in the queue.
WebDAV State
State on every attachment
Not Synced, Queued, Synced or Failed, with Remote Path, Synced On, attempts and the last error. The attachment form has a Remote Path button that opens the file on the server and a Sync Log button.
Empty Local File
Delete-local with a check
Off by default. When on, the stored file is emptied only if the server answered 201 or 204 and HEAD (or PROPFIND) reports the same size. The attachment record stays, with its remote path.
Without it: Moving files out of the filestore by script gives no proof the copy arrived.
Run History
History per rule
One line per attempt with HTTP status, message and a link to the matching request in the API Connector Hub log. The PUT of the file is one of those requests.
Test Connection
Test and Sync Now
Test Connection sends PROPFIND with Depth 0 to the fixed start of the folder template. Sync Now runs one rule; the WebDAV: Sync Now action sends the attachments selected in the attachment list.
WebDAV Maximum File Size
Size limit
Settings > General Settings > Integrations holds one maximum in MB (25 by default, 0 = none). Larger attachments are never queued.

Getting started

Install

Open Apps, clear the Apps filter, search for Attachment WebDAV Sync and click Activate. It needs API Connector Hub (installed with it if it is in your addons path).

Apps › api_hub_webdav_sync › Activate
Configure

Create a connection in API Connector Hub: base URL of the WebDAV root (for Nextcloud https://host/remote.php/dav/files/USERNAME), login Basic or Bearer. Then add a rule, press Test Connection and Sync Now.

API Hub › WebDAV Sync › Rules Settings for Attachment WebDAV Sync
Use

Attach files as usual. The cron sends them; open API Hub › WebDAV Sync › Attachments to see what is queued, synced or failed, and Run History for each attempt.

Attachments with their state, remote path and last error. The Lumber Inc file waits for a retry after a 503.
Attachments with their state, remote path and last error. The Lumber Inc file waits for a retry after a 503.
An attachment after upload: Remote Path and Sync Log buttons, local file emptied after the size check.
An attachment after upload: Remote Path and Sync Log buttons, local file emptied after the size check.

Fine print

Where do I see the requests it sends?
In API Connector Hub, Request Log: MKCOL, PUT, HEAD and PROPFIND are normal hub requests, each Run History line links to its request. A failed PUT keeps its body there, so Send Again in the hub works too.
What happens to the local file when Empty Local File is on?
The stored content is emptied after the size check; the attachment record, its name and its remote path stay. Downloading it from Odoo then gives an empty file, so use it only when the server copy is the one you keep.
Does it download changes made on the server?
No. It sends once and does not look at the file again.
Where can I run it?
On Odoo.sh and on your own server, Community or Enterprise, versions 16.0 to 20.0. Odoo Online doesn't accept third-party modules.
What doesn't it do?
Configuration-driven and not tested against a live Nextcloud or any other vendor's server: the tests use a simulated WebDAV server. Needs API Connector Hub 1.1 or newer. The hub keeps the body of a request that is still waiting or failed as base64 in its log, about a third larger than the file, so the maximum file size is 25 MB by default; raise it with care. One-way, Odoo to server. A file changed in Odoo after it was sent is not sent again. Attachments of type URL and field images (avatars) are ignored. Only administrators manage rules.
Can you adapt it for us?
Yes. Email odoo.expert.111@gmail.com with your Odoo version and what you'd like changed.

Log

16.0.1.0.0 · Oct 2026
First release, published for Odoo 16.0 to 20.0.

Does it work with my WebDAV server?

Tell us the server and the login type, and we will say what to check in the connection.

Email odoo.expert.111@gmail.com
QR code: email Awins about this module

Also by Awins

API Connector Hub API Connector Hub api_connector_hub
Split Transfers Split Transfers a_stock_picking_split
Product Warranty Claims Product Warranty Claims product_warranty_claim_track
Awins builds small Odoo modules that do one job. api_hub_webdav_sync · 16.0.1.0.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
API Connector Hub
Lines of code 1679
Technical Name api_hub_webdav_sync
LicenseOPL-1
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with