From 99b7a6e7a167751a29d5bf13646c281c31225292 Mon Sep 17 00:00:00 2001 From: Temur Vibliani Date: Sat, 20 Jun 2015 13:14:32 +0400 Subject: [PATCH] [FIX] product: fake error log from product.template Disabled fake error log from product.template.create_variant_ids() function. Closes #7182 --- addons/product/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/product.py b/addons/product/product.py index 44f6dcf81a3..1e4d73c58e1 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -718,7 +718,7 @@ class product_template(osv.osv): # unlink or inactive product for variant_id in map(int,variants_inactive): try: - with cr.savepoint(): + with cr.savepoint(), tools.mute_logger('openerp.sql_db'): product_obj.unlink(cr, uid, [variant_id], context=ctx) except (psycopg2.Error, osv.except_osv): product_obj.write(cr, uid, [variant_id], {'active': False}, context=ctx)