From 4c427de6a3cb3c46b3e1999d970108370a421ff2 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Mon, 20 Jan 2020 08:35:58 +0000 Subject: [PATCH] [FIX] product: incorrect super call Unfortunately caught in a really wide try/except clause where it was completely silenced, causing a lot of stuff to be archived instead of deleted. closes odoo/odoo#43543 X-original-commit: cfa2993615150416b801ce942f18339065678648 Signed-off-by: Damien Bouvy (dbo) --- addons/product/models/product_attribute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product_attribute.py b/addons/product/models/product_attribute.py index 5ad2032a7c9..ede2fe40d95 100644 --- a/addons/product/models/product_attribute.py +++ b/addons/product/models/product_attribute.py @@ -473,7 +473,7 @@ class ProductTemplateAttributeValue(models.Model): for ptav in self: try: with self.env.cr.savepoint(), tools.mute_logger('odoo.sql_db'): - super(ProductTemplateAttributeLine, ptav).unlink() + super(ProductTemplateAttributeValue, ptav).unlink() except Exception: # We catch all kind of exceptions to be sure that the operation # doesn't fail.