Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

conditionally hide addons_path item

By
Daniel Blanco
on 2/11/16, 7:06 AM 383 views

I am managing several databases with a same Odoo instance. It is desirable to me, to have available an addons_path item, to one database, but not to the others. For example:

addons_path = /opt/odoo/old-addons,/opt/odoo/odoo/addons [...]

so that old-addons are only visible to one database but not to others. Is there a way to do this?

0

Axel Mendoza

--Axel Mendoza--
10323
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 2/11/16, 3:00 PM

Right now the way to do that is creating multiple Odoo instances with different config files that hold different addons_path options. I know that Odoo will release in a few months a tool or something to be able to manage different addons_path using only one instance or at least that's what I understand from a chat with Fabien. If not I will build my solution for that but right now you need to create several instances to have different addons_path. A few good practices for that:

- Keep the code for each database only for that database, if you use git you could clone the git repo for every database to be sure that an update in one database doesn't corrupt the others

- Use the dbfilter option to match, show and manage only the database of the instance or create a PostgreSQL user for each Odoo instance if you don't wanna see all the other database in the Odoo instance

- If you are using Odoo 8 or 9 you need to configure the longpooling port different for every database.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/11/16, 7:06 AM
Seen: 383 times
Last updated: 2/11/16, 3:00 PM