[FIX] product: delete unecessary product variants

Bug introduced by 1aa5bc0fdf
During migration to new api
This commit is contained in:
fwi-odoo
2016-09-22 13:37:04 +02:00
parent ca43594a0d
commit 82b83ac7cd
+1 -1
View File
@@ -402,7 +402,7 @@ class ProductTemplate(models.Model):
})
# unlink or inactive product
for variant in variants_to_activate:
for variant in variants_to_unlink:
try:
with self._cr.savepoint(), tools.mute_logger('odoo.sql_db'):
variant.unlink()