Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: how to ask a running odoo what its addons path is

by
redCOR AG, Robert Rottermann
- 13/07/2018 14:44:42

Hi


On 13.07.2018 12:32, Tom B wrote:
Robert, can you share the use case? What do you want to do with this path? Maybe then we can help you think of a better solution that avoids exposing the path over odoorpc
I am writing a tool called "preset-manager"
it should help users in a SAAS-envrionment to select a preconfigured set of odoo tools appropriate for their business.
Then then, according  to the selected configuration to the  they will be presented with a list of questions they should answer.
The questions and their answers I store as yaml files "close" to the settings of the site.

So what I would like is to have a folder "yaml_files", in the same folder the site gets its config file from.
Now I know, where the site has its config files and can tell the tool where to get it.
However I would like to enable the tool to find out that place itself to make it more self contained.

thanks again
robert

On 13.07.2018 12:32, Tom B wrote:
Robert, can you share the use case? What do you want to do with this path? Maybe then we can help you think of a better solution that avoids exposing the path over odoorpc

Op vr 13 jul. 2018 18:02 schreef robert rottermann <robert@redcor.ch>:



On 13.07.2018 11:46, Achraf Mhadhbi wrote:
Hi,

Did you check OCA/odoorpc?
yes, this is the tool I am using
what I want to do is something like this:

from odoorpc import ODOO
odoo = ODOO()
odoo.login('somedb', someuser', 'somepassword')

# and how the part I do not know how to handle:
addons_path = odoo.get_addons_path()

robert

On Fri, Jul 13, 2018 at 11:31 AM robert@redo2oo.ch <robert@redo2oo.ch> wrote:

Hi there,


I would like to contact a running odoo site using odoorpc and get the addons-path odoo is started with.

Can anybody share an idea how this could be done?


thanks

robert

--
Robert Rottermann CEO

031 333 10 20
robert@redo2oo.ch
Sickingerstrasse 3, 3014 Bern

https://Redo2oo.ch
Ihr Partner wenn es um ERP Lösungen geht.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--
Achref Mhadhbi | Sofware Engineer 

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference