From 9a1c54d2424bb5a185ead521e4224eef3d8e64a0 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Sat, 9 Nov 2013 00:02:24 +0100 Subject: [PATCH] [FIX] stock: mute orm logger before checking access rules bzr revid: chs@openerp.com-20131108230224-tqj0tg5xgz8ramwd --- addons/stock/wizard/stock_fill_inventory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/stock/wizard/stock_fill_inventory.py b/addons/stock/wizard/stock_fill_inventory.py index 07dcb3965d7..7f55adbab4c 100644 --- a/addons/stock/wizard/stock_fill_inventory.py +++ b/addons/stock/wizard/stock_fill_inventory.py @@ -21,6 +21,7 @@ from openerp.osv import fields, osv, orm from openerp.tools.translate import _ +from openerp.tools import mute_logger class stock_fill_inventory(osv.osv_memory): _name = "stock.fill.inventory" @@ -29,7 +30,8 @@ class stock_fill_inventory(osv.osv_memory): def _default_location(self, cr, uid, ids, context=None): try: location = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_stock') - location.check_access_rule('read', context=context) + with mute_logger('openerp.osv.orm'): + location.check_access_rule('read', context=context) location_id = location.id except (ValueError, orm.except_orm), e: return False