[IMP] Comment profiling

bzr revid: jco@openerp.com-20140313142102-6dgiwvxlw9ul58ek
This commit is contained in:
Josse Colpaert
2014-03-13 15:21:02 +01:00
parent 50cd5eae53
commit 283e70ebce
+2 -2
View File
@@ -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.
"""