Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

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

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
exportattachmentsdownloadquickstartQuickstart
3197 Visninger
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
Kassér
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!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
How do I connect the Epson TM-T88VII to Odoo?
quickstart Quickstart
Avatar
Avatar
2
okt. 25
950
How to Set Customer-Specific Product Names Løst
quickstart Quickstart
Avatar
1
nov. 25
1451
✅ 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? Løst
quickstart Quickstart
Avatar
2
aug. 25
1892
Does Odoo manage WebP ? Løst
quickstart Quickstart
Avatar
Avatar
Avatar
3
jul. 25
4564
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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