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

ir_attachment.location for V8?

Subscribe

Get notified when there's activity on this post

This question has been flagged
v8filestorereportsparameterlocal
9 Replies
33791 Views
Avatar
Hannes Hörting

Hello!

Are the Option ir_attachment.location available in V8? "https://accounts.openerp.com/forum/Help-1/question/529/"

I want to save my PDF´s on the local disc. Or is there another way to do this?

I put in Technical/Paramater/Systemparamter: "ir_attachment.location" with the value "file:///filestore"

Generate a folder with "filestore" in the root of openERP and set chmod 777 and chown openerp.

But no files are saved. Server restarted of course.

Thank you!

5
Avatar
Discard
Avatar
Bole
Best Answer

In V8 filestore is used by default.. no need for extra setup...

If user runnig odoo has home set to /opt/odoo , then default filestore location is:
/opt/odoo/.local/share/Odoo/filestore/database_name

it can be set in config file with new  config setting:

data_dir = /path/to/desired/Odoo

In that path, odoo will create folders: addons, filestore and session

in filestore odoo server will create a new folder for each database,  and in database, 
in table ir_attachment will be stored path relative to /path/to/desired/Odoo/filestore/db_name ... to actual file...


This folder will contain all attachments (from backend, and also all website materials like pictures etc...)

Hope this helps..

 

p.s.

odoo user should have rw acces to that folder, but under any cicrcumstances should it be 777 , never ever do that! 640 is quite good, and everything shlud work with that permissions !

7
Avatar
Discard
Tobias Frankl

Good Answer The filenames "asfdlhjasdfasdf6a7sdf67adsf7z" are not a great help if one wants to access files from outside odoo. Is there a workaround to have human readable filenames?

yuri

I'm interested on that too.

Avatar
Ashish Singh
Best Answer

Suppose we set data_dir = /path/to/desired/Odoo in odoo-server.conf file , Now i want to read data_dir path in my custome module , So how can i read data_dir in my module?                                                                            

 

 

 

2
Avatar
Discard
Avatar
George
Best Answer

Hi friends,

i am using windows server when i use data_dir = D:\Development\Workspace\odoo-8.0-20150317\doo_documents like this i get error while click on the page


Traceback (most recent call last):

File "D:\Development\Workspace\odoo-8.0-20150317\openerp\http.py", line 530, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "D:\Development\Workspace\odoo-8.0-20150317\openerp\http.py", line 1399, in _dispatch_nodb

func, arguments = self.nodb_routing_map.bind_to_environ(request.httprequest.environ).match()

File "C:\Python27\lib\site-packages\werkzeug-0.9.4-py2.7.egg\werkzeug\routing.py", line 1433, in match

raise NotFound()

NotFound: 404: Not Found


Please help me to solve this issue

1
Avatar
Discard
Avatar
Winyoo
Best Answer

For Odoo 8, you need only to change the location in "openerp-server.conf". 

There is a row with "data_dir = ...." You can change to the place that you want. 

For example, mine is "data_dir = C:\Odoo Attach"

 

You don't need to modify "System Parameters", because it is set to be "file" as a default.

0
Avatar
Discard
Avatar
Andreas Marpmann
Best Answer

Try it after move "filestore" into /opt/openerp/server/openerp/filestore

0
Avatar
Discard
Avatar
Mathias Colpaert
Best Answer

Has anybody succeeded in storing files on server, with Odoo v8?

 

@Andreas, Do you think it is possible?

0
Avatar
Discard
Avatar
Rafael
Best Answer

Hi! I have a problem with odoo 8. When i attach any file, this file is saved both filestore and bd. If i upload a file with 1200kb, making du to filestore I view that grown 1200kb, but when i backup my bd, it also has grown 1200kb! With openerp 7 did no happen this

0
Avatar
Discard
yuri

Is this still happening? Should I check my instalation to see if that is happening?

Avatar
wizardz
Best Answer

I have this problem with that :


Hi, When I'm trying to install Aeroolib I get error:

chown: cannot access ‘/var/lib/odoo’: No such file or directory

I think thats because I installed Odoo in an other directory.

Is there a way to clean this? I mean to install aeroolib aeroo-docs with odoo in the directory /opt/odoo?

Odoo is installed in /opt/odoo, not in /var/lib/odoo.

Thanks for all the help

0
Avatar
Discard
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
[V8] How to get DATA_DIR Solved
v8 filestore
Avatar
Avatar
Avatar
4
Jul 15
8475
Why won't the header appear in a PDF report? Solved
v8 reports wkhtmltopdf
Avatar
Avatar
Avatar
Avatar
Avatar
5
May 23
20566
[SOLVED] how to add record number in reports ? Solved
v8 qweb reports
Avatar
Avatar
2
Oct 22
7196
Why is the wrong currency symbol displayed? Solved
v8 currency reports
Avatar
Avatar
1
Mar 15
6845
Odoo v8 - Qweb Footer without horizontal line (top border) Solved
v8 qweb reports footer
Avatar
Avatar
2
Jan 25
10535
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