From 3cca781cdc70c65a0dbb7f2b15c9036142bd89b5 Mon Sep 17 00:00:00 2001 From: Alex Comba Date: Wed, 7 Mar 2018 12:43:18 +0100 Subject: [PATCH] [FIX] connector_redmine, redmine_import_time_entry: fix https://github.com/OCA/connector-redmine/issues/16 In redmine 2.0.0, the package name was renamed from redmine to redminelib --- connector_redmine/__manifest__.py | 2 +- connector_redmine/unit/backend_adapter.py | 2 +- redmine_import_time_entry/unit/backend_adapter.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/connector_redmine/__manifest__.py b/connector_redmine/__manifest__.py index 5f832de..700719a 100644 --- a/connector_redmine/__manifest__.py +++ b/connector_redmine/__manifest__.py @@ -15,7 +15,7 @@ 'hr_timesheet_sheet', ], 'external_dependencies': { - 'python': ['redmine'], + 'python': ['redminelib'], }, 'data': [ 'security/ir.model.access.csv', diff --git a/connector_redmine/unit/backend_adapter.py b/connector_redmine/unit/backend_adapter.py index c1ded23..32b312f 100644 --- a/connector_redmine/unit/backend_adapter.py +++ b/connector_redmine/unit/backend_adapter.py @@ -12,7 +12,7 @@ _logger = logging.getLogger(__name__) try: - from redmine import Redmine, exceptions + from redminelib import Redmine, exceptions except (ImportError, IOError) as err: _logger.warning('python-redmine not installed!') diff --git a/redmine_import_time_entry/unit/backend_adapter.py b/redmine_import_time_entry/unit/backend_adapter.py index ce6ea73..7c3e492 100644 --- a/redmine_import_time_entry/unit/backend_adapter.py +++ b/redmine_import_time_entry/unit/backend_adapter.py @@ -4,7 +4,7 @@ from odoo.tools.translate import _ import odoo.addons.connector.exception as cn_exception -from redmine import exceptions +from redminelib import exceptions from odoo.addons.connector_redmine.unit.backend_adapter import ( RedmineAdapter) from odoo.addons.connector_redmine.backend import redmine