From 82b83ac7cd38303087483d5a20522ef14d59d905 Mon Sep 17 00:00:00 2001 From: fwi-odoo Date: Thu, 22 Sep 2016 13:37:04 +0200 Subject: [PATCH] [FIX] product: delete unecessary product variants Bug introduced by 1aa5bc0fdfa402ac7cccbc3a7203ec5050f6339b During migration to new api --- addons/product/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product_template.py b/addons/product/models/product_template.py index fb6ef5f556d..db3d2d81ce0 100644 --- a/addons/product/models/product_template.py +++ b/addons/product/models/product_template.py @@ -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()