Skip to content
Snippets Groups Projects
Commit 82b83ac7 authored by fwi-odoo's avatar fwi-odoo
Browse files

[FIX] product: delete unecessary product variants

Bug introduced by 1aa5bc0f
During migration to new api
parent ca43594a
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment