[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user