[FIX] product: fake error log from product.template
Disabled fake error log from product.template.create_variant_ids() function. Closes #7182
This commit is contained in:
parent
1f684b6447
commit
99b7a6e7a1
|
@ -718,7 +718,7 @@ class product_template(osv.osv):
|
||||||
# unlink or inactive product
|
# unlink or inactive product
|
||||||
for variant_id in map(int,variants_inactive):
|
for variant_id in map(int,variants_inactive):
|
||||||
try:
|
try:
|
||||||
with cr.savepoint():
|
with cr.savepoint(), tools.mute_logger('openerp.sql_db'):
|
||||||
product_obj.unlink(cr, uid, [variant_id], context=ctx)
|
product_obj.unlink(cr, uid, [variant_id], context=ctx)
|
||||||
except (psycopg2.Error, osv.except_osv):
|
except (psycopg2.Error, osv.except_osv):
|
||||||
product_obj.write(cr, uid, [variant_id], {'active': False}, context=ctx)
|
product_obj.write(cr, uid, [variant_id], {'active': False}, context=ctx)
|
||||||
|
|
Loading…
Reference in New Issue