From 5e4f57404f5fa758d46a3ee35e3f8b7f5284663b Mon Sep 17 00:00:00 2001 From: Eric Antones Date: Mon, 11 May 2020 11:25:18 +0200 Subject: [PATCH] [FIX] config file passed via '-c' argument ignored The sentinel is always using the default ~/.odoorpcrc and ignoring the one passed via '-c' parameter --- odoo_sentinel/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odoo_sentinel/__init__.py b/odoo_sentinel/__init__.py index ffeeca8..eeadb72 100755 --- a/odoo_sentinel/__init__.py +++ b/odoo_sentinel/__init__.py @@ -63,7 +63,8 @@ def __init__(self, stdscr, options): """ if options.profile in odoorpc.ODOO.list(rc_file=options.config_file): # Try to autodetect an OdooRPC configuration - self.connection = odoorpc.ODOO.load(options.profile) + self.connection = odoorpc.ODOO.load(options.profile, + rc_file=options.config_file) else: raise Exception( 'Profile "{options.profile}" not found in file '