İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

How to work with ir.attachment in Odoo 8?

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
pdfdatabasefilestorefilenameir.attachment
1 Cevapla
21504 Görünümler
Avatar
Pascal Tremblay

Hey guy,

Other questions here. 

Document module is well installed. We are on Odoo 8 nightly build.

When we go in Setting->Database Structure->Attachments, we many icons of our reports an attachments.


1) If we prefer to store our attachments in a external filestore, should they appear there too?

2) In this place, can we only see attachment stored in database?


3) And you guys, do you use this ir_attachment.location parameter in the setting of Odoo 8???



4) It is impossible to write any PDF report in the filestore (on disk). We can not see them in settings -> Database Structure -> Attachment, anymore... It worked before!!!??!!!  See image above.... We can see any PDF there... But now, it doesn't work.


5) I have made a search in all the directory of our odoo installations. No trace of any PDF there... It is magic.... Where are my report????? When it is written on the web that we can store our attachment on a disk filestore, does it include also the PDF REPORTS?????


Thanks to help or discuss any of my questions.

1
Avatar
Vazgeç
Avatar
Temur
En İyi Yanıt

We had some discussion about the topic here. It covers at least 4 and 5.

UPDATE:

1) Currently it's other way around: if we prefer to store files in database, then we have to configure it to be this way. by default files are stored in filestore, we do not have to configure anything. Files are stored in filestore and naturally they appear there. Thus, database records ("ir.attachment") are necessary as they are pointing to actual files in the filestore. 

2) In this place we see ir.attachment records, any of them may have actual file saved in filestore or in database. It does not matter where file is stored, in database or in filestore, here we can see all ir.attachment records.

3) this setting determine where files are actually stored. value 'file' is default and it means that files will be stored in the filestore. value 'db' means that files will be stored in the database, you can set it to 'db'. also possible use some path, I tried to use path in v7 but it become relative path under filestore... for path you can check how it works for v8. also you can implement support for other storage engines, refer to ir_attachment code. Note: if we change this setting, it'll affect only new records. i.e. if it was set to 'file' and we changed to 'db', then old files will stay where they are in filestore, but new files will be stored in database, and so on.

4) if you interested to do it yourself, then this is completely cowered in the thread that I've referred in the beginning. i.e. create file (csv) and save it using ir.attachment. only difference is that in your case file type is pdf, this difference does not make big deal. But if you just worry that now, it doesn't work... then I can assure you that it works like a charm.

5) Also cowered in the referred thread. files on the disk are NOT saved with it's original names, but using hash code of it's content (used sha1 of content, part of hash used for parent directory of actual file). that's why you can't find the file you search with it's name, but files are there. file names are stored in the database, in ir.attachment. if it's absolutely necessary you can find file on the disk if you know or can compute it's sha1 hash code. you'll find the file under filestore, under directory with a name matching the start (left part) of hashcode. as you find the correct one and you know it's original name, you can rename it (or just add .pdf extension) and open with some pdfreader.


3
Avatar
Vazgeç
Pascal Tremblay
Üretici

Thanks. Someone else?

Temur

Updated. Added answers to 1, 2 and 3. Also added notes for 4 and 5.

Pascal Tremblay
Üretici

Big big big thanks! We analyze each one of your words and we come back with our comments.

Temur

You're welcome.

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

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

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
How to store programmatically created file in ir.attachment
pdf attachment filestore filename odoo
Avatar
Avatar
Avatar
2
Eyl 23
12769
database backup keep getting corrupted
database filestore odoo16
Avatar
Avatar
2
Mar 25
2173
How to avoid storing pdf invoices in the filestore?
pdf invoice filestore
Avatar
Avatar
2
Nis 24
2976
ir_attachment_force_storage then files not found
database filestore attachments
Avatar
0
Ağu 18
4512
Invoice number into the pdf file name Çözüldü
pdf invoice filename
Avatar
Avatar
Avatar
Avatar
Avatar
27
Ağu 24
41706
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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