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)
course odoo database community gettingstarted
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
course odoo database community gettingstarted
About this forum
  1. Getting Started
  2. Forum

How to create and configure a folder inside the odoo folder to behaves like the addons folder?

Subscribe

Get notified when there's activity on this post

This question has been flagged
2 Replies
4666 Views
Avatar
Gabriel Sellan

I am an intern at a company and we are using modules from other companies, such as OCA in our system. However, we would like to have a separate folder that works like the addons folder but with the name of the company from which we are using the modules so that it is more organized and facilitates the management of imports. However, for this to work, we need to put the full path to the folder module inside the addons_path in odoo.conf, for example: /home/user/odoo/oca/web. However, this way the file needs to have the path to each module, which makes the file very large and we need to edit it every time we add a new module. Does anyone have a way to just put the path to the oca folder, for example: /home/user/odoo/oca in the addons_path, and it already leaves all the modules cloned inside it to be installed in odoo?


odoo 16.0

1
Avatar
Discard
Avatar
Yahoo Baba Innovations Pvt.Ltd
Best Answer

Hello Gabriel Sellan,

I hope you're doing well.


I have shared 3 steps you can use.


Step : 1 Using a simple path.

odoo@odoo ~/workspace/16comminity (16.0) $  ./odoo-bin --addons-path=addons -p 1704 -d test_16


Step : 2 Using a simple path + Add another module path.

odoo@odoo ~/workspace/16comminity (16.0) $  ./odoo-bin --addons-path=addons,/home/odoo/Downloads/report_qweb_element_page_visibility-16.0.1.0.0/ -p 1601 -d db_test_16


Step : 3 Using config file.

odoo@odoo ~/workspace/16comminity (16.0) $ ./odoo-bin -c /home/odoo/workspace/16/Conf/odoo_16.cfg -p 1601 -d test_16


Inside the config : 

addons_path = /home/odoo/workspace/16comminity/addons,/home/odoo/workspace/16enteprice,/home/odoo/Downloads/report_qweb_element_page_visibility-16.0.1.0.0/


Hope this helps!


Thanks & Regards,

Name : Yahoo Baba

Email:  yahoobaba077@gmail.com

1
Avatar
Discard
Avatar
S.A. Methsiri Madusanka Sooriyaarachchi
Best Answer

To manage modules efficiently and keep your odoo.conf file manageable, you can configure Odoo to recognize a parent directory and automatically find modules within it. Here's how to set it up in Odoo 16.0:

1. Organize Your Directory Structure

  1. Create a Directory:
    • Create a parent directory where you will store all your external modules, e.g., /home/user/odoo/oca.
  2. Place Your Modules:
    • Inside this parent directory (oca), you can place all the module folders.

2. Configure Odoo to Use the Parent Directory

  1. Edit odoo.conf:
    • Open the Odoo configuration file (odoo.conf) with a text editor.
  2. Set the addons_path:
    • Modify the addons_path parameter to point to the parent directory. Odoo will then recursively search for modules within this directory and its subdirectories.
    • Example configuration:
      iniCopy codeaddons_path = /home/user/odoo/oca
      
    • This setting tells Odoo to look inside /home/user/odoo/oca and any subdirectories within it to find modules.

3. Ensure Proper Permissions

  • Make sure that the Odoo process has the necessary read permissions for the new directory and its subdirectories.

4. Restart Odoo

  • Restart the Odoo server to apply the changes. Depending on your setup, you might use:
    bashCopy codesudo systemctl restart odoo
    
    or if running manually:
    bashCopy code./odoo-bin -c /path/to/your/odoo.conf
    

5. Update the Apps List

  • Log in to your Odoo instance.
  • Go to the Apps menu and click on Update Apps List to ensure that Odoo detects and lists the modules from the new directory.

Advantages of This Approach:

  • Simplified Management: You only need to specify the path to the parent directory, making the odoo.conf file cleaner and easier to manage.
  • Automatic Detection: Odoo will automatically detect any new modules added to the subdirectories, reducing the need for constant manual updates.

By configuring the addons_path to point to a parent directory, you streamline the process of managing and organizing external modules. This setup will keep your configuration file concise and make module management more efficient.

3
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
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