Contributors mailing list archives
Re: how to ask a running odoo what its addons path isby
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 <email@example.com>:
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()
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?
Robert Rottermann CEO
031 333 10 20
Sickingerstrasse 3, 3014 Bern
Ihr Partner wenn es um ERP Lösungen geht.--Achref Mhadhbi | Sofware Engineer