[FIX] product: delete unecessary product variants
Bug introduced by 1aa5bc0fdf
During migration to new api
This commit is contained in:
@@ -402,7 +402,7 @@ class ProductTemplate(models.Model):
|
|||||||
})
|
})
|
||||||
|
|
||||||
# unlink or inactive product
|
# unlink or inactive product
|
||||||
for variant in variants_to_activate:
|
for variant in variants_to_unlink:
|
||||||
try:
|
try:
|
||||||
with self._cr.savepoint(), tools.mute_logger('odoo.sql_db'):
|
with self._cr.savepoint(), tools.mute_logger('odoo.sql_db'):
|
||||||
variant.unlink()
|
variant.unlink()
|
||||||
|
|||||||
Reference in New Issue
Block a user