Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: how to ask a running odoo what its addons path is
byHi
I am writing a tool called "preset-manager"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
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
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 odoorpcOp vr 13 jul. 2018 18:02 schreef robert rottermann <robert@redcor.ch>:
On 13.07.2018 11:46, Achraf Mhadhbi wrote:yes, this is the tool I am usingHi,Did you check OCA/odoorpc?
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()
robertHi 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
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
-
how to ask a running odoo what its addons path is
byredCOR AG, Robert Rottermann-
Re: how to ask a running odoo what its addons path is
byredCOR AG, Robert Rottermann -
Re: how to ask a running odoo what its addons path is
byredCOR AG, Robert Rottermann -
Re: how to ask a running odoo what its addons path is
byOsiell, Sébastien Alix -
Re: how to ask a running odoo what its addons path is
byBloopark Systems GmbH & Co. KG., Achraf Mhadhbi
-