[FIX] product: deletion of product category

Missing super call for product category deletion.

closes odoo/odoo#53699

X-original-commit: ebc75df2b3d3f80aebc2fc1d8500fa57c1755bbd
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Victor Feyens
2020-06-25 16:18:19 +00:00
parent 01a8260622
commit b93b2824d8
+1
View File
@@ -65,6 +65,7 @@ class ProductCategory(models.Model):
main_category = self.env.ref('product.product_category_all')
if main_category in self:
raise UserError(_("You cannot delete this product category, it is the default generic category."))
return super().unlink()
class ProductProduct(models.Model):