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
    • Approvals
    • 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
    • Estate 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
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

[✅ SOLVED] How to Mass Download Attachments from an Odoo Database (V.18)

Subscribe

Get notified when there's activity on this post

This question has been flagged
exportattachmentsdownloadquickstartQuickstart
3209 Views
Avatar
Victor David Orozco Valenzuela (vdov)

Sometimes we need to download one or several of the files that Odoo has generated (invoices, XMLs, contracts, images, etc.). Here’s a practical way to do it.


Tools Needed:

  • Access to your Odoo database (with developer permissions), here’s how you can do it. 
  • A spreadsheet tool (e.g., Excel or Google Sheets)
  • A mass download manager (e.g., JDownloader)


Work Flow:

Step-by-Step Guide:

Enable Developer Mode in Odoo

Go to settings and select “Activate the developer mode”


Create a Server Action to Make Attachments Public

In the main menu type: Server Actions, select the first option.

In the server actions view create a new one and name it “Publish attachments”. The configuration has to be this:


Then just click on “Create Contextual Action”


Access the Attachment List

In your main menu, type attachments and select “Settings / Technical / Database Structure / Attachments”


Select the Documents You Want to Download

You can use filters by model, name, date, type of file, etc.

Run the Server Action to Make the Files Public

Select the filtered records and execute your public access action.

Disclaimer: When we run the Server Action we are going to make public all of the attachments, which means anyone with the link can access them, so at the end we are going to run the server action again to make them private again.


Export the Selected Attachments

Use the "Export" option and make sure to include the local_url field from the ir.attachment model.

In the exported file, add a Column with Your Database Domain, name it Database URL

Example: https://edu-victorcorp.odoo.com (repeat this for all rows).

Create a New Column to Concatenate the Domain + local_url

Excel formula: =L3&K3

Where L3 is the domain and K3 is the file path.

Copy all of the “Real URL” and paste them into Your Download Manager

In JDownloader, Select add URL → paste all the URLs → choose the destination folder → start the download.

1


2


3

4


*IMPORTANT: Make the Attachments Private Again.

  1. Go to back to the server action that you created and update the action details and set the “to” field to “No (False)”
  2. Go back to the attachments, select the published attachments, and run the server action again to set the files private.

2
Avatar
Discard
faOtools

Alternatively, you can sync the required attachment to a cloud client (e.g., Google Drive or OneDrive) using the tool https://apps.odoo.com/apps/modules/18.0/cloud_base. Then, you can comfortably navigate through the folders and download any attachment combinations

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How do I connect the Epson TM-T88VII to Odoo?
quickstart Quickstart
Avatar
Avatar
2
Oct 25
951
How to Set Customer-Specific Product Names Solved
quickstart Quickstart
Avatar
1
Nov 25
1453
✅ Odoo E-commerce: How to discriminate deliveries based on the type of clients
quickstart Quickstart
Avatar
0
Aug 25
1454
How can Import an existing Spreadsheets with formulas with out doing it manually? Solved
quickstart Quickstart
Avatar
2
Aug 25
1893
Does Odoo manage WebP ? Solved
quickstart Quickstart
Avatar
Avatar
Avatar
3
Jul 25
4567
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
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

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

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now