From 1a54486138f8018141e3b7f80c26ccc39956b0f3 Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Tue, 17 Mar 2015 17:12:18 -0400 Subject: [PATCH 1/2] Add base_import as admin_technical_features deps With module admin_technical_features installed, base_import unittests fail with in the following test: test_shallow (openerp.addons.base_import.tests.test_cases.test_o2m) Having technical features enabled add the following to the dict in fields: {'fields': [{'fields': [], 'id': 'parent_id', 'name': 'id', 'required': False, 'string': 'External ID'}, {'fields': [], 'id': 'parent_id', 'name': '.id', 'required': False, 'string': 'Database ID'}], 'id': 'parent_id', 'name': 'parent_id', 'required': False, 'string': 'unknown'} --- admin_technical_features/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_technical_features/__openerp__.py b/admin_technical_features/__openerp__.py index cd0b644fa..2b2ce6372 100644 --- a/admin_technical_features/__openerp__.py +++ b/admin_technical_features/__openerp__.py @@ -48,7 +48,7 @@ Module developed and tested with Odoo version 8.0 For questions, please contact our support services \ (support@savoirfairelinux.com) """, - 'depends': [], + 'depends': ['base_import'], 'external_dependencies': { 'python': [], }, From d39574007896fcf12f244685499312233a6e4b6f Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Thu, 16 Apr 2015 22:32:28 +0100 Subject: [PATCH 2/2] Disable logging while in shell Fixes #150 --- shell/cli/shell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/cli/shell.py b/shell/cli/shell.py index 632afc304..9f14012c1 100644 --- a/shell/cli/shell.py +++ b/shell/cli/shell.py @@ -18,6 +18,7 @@ from __future__ import print_function import code +import logging import os import signal import sys @@ -62,6 +63,7 @@ class Shell(Command): ' to get one.') for i in sorted(local_vars): print('%s: %s' % (i, local_vars[i])) + logging.disable(logging.CRITICAL) Console(locals=local_vars).interact() def shell(self, dbname):