From fa18dc445f0f7e3ccdde077861dec4b1a0ae9ab3 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 20 Dec 2011 10:38:27 +0100 Subject: [PATCH] [FIX] procurement: remove yml statement that queries the db asynchronously bzr revid: rco@openerp.com-20111220093827-0lt9tzvlnxxg1nki --- addons/procurement/test/procurement.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/addons/procurement/test/procurement.yml b/addons/procurement/test/procurement.yml index 4c59d0c7b7c..f769715e572 100644 --- a/addons/procurement/test/procurement.yml +++ b/addons/procurement/test/procurement.yml @@ -78,11 +78,12 @@ proc_id = context.get('proc') proc = self.browse(cr, uid, [proc_id])[0] assert proc.state == 'ready' or 'exception',"Procurement should be in Ready or Exception state" -- - I compute minimum stock. -- - !python {model: procurement.orderpoint.compute}: | - proc_id = context.get('proc') - context.update({'active_model': 'procurement.order', 'active_id': proc_id}) - id = self.create(cr, uid, {'automatic': True}, context) - self.procure_calculation(cr, uid, [id], context) +#- +# I compute minimum stock. +# [Note. Commented out because it spawns a thread that may query the db after tests have been reverted.] +#- +# !python {model: procurement.orderpoint.compute}: | +# proc_id = context.get('proc') +# context.update({'active_model': 'procurement.order', 'active_id': proc_id}) +# id = self.create(cr, uid, {'automatic': True}, context) +# self.procure_calculation(cr, uid, [id], context)