From 283e70ebceed259a4c323aa7870c4953051c98b4 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 13 Mar 2014 15:21:02 +0100 Subject: [PATCH] [IMP] Comment profiling bzr revid: jco@openerp.com-20140313142102-6dgiwvxlw9ul58ek --- addons/stock/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index e3b8542141c..4d88dac6d01 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -31,7 +31,7 @@ from openerp import SUPERUSER_ID import openerp.addons.decimal_precision as dp import logging -from profilehooks import profile +# from profilehooks import profile _logger = logging.getLogger(__name__) #---------------------------------------------------------- @@ -2029,7 +2029,7 @@ class stock_move(osv.osv): if check and not lot_id: raise osv.except_osv(_('Warning!'), _('You must assign a serial number for the product %s') % (move.product_id.name)) - @profile(immediate=True) +# @profile(immediate=True) def action_assign(self, cr, uid, ids, context=None): """ Checks the product type and accordingly writes the state. """