From 3ca4553eb508f0a22afbcfa869020d6daaae6510 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 23 Apr 2024 21:40:39 +0200 Subject: [PATCH] product_detailed_type_stock: default product type is 'product' instead of 'consu' Same behavior as in stock_usability that switch default type to 'product' instead of 'consu' --- product_detailed_type_stock/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_detailed_type_stock/models/product_template.py b/product_detailed_type_stock/models/product_template.py index 4f23eec..f13c267 100644 --- a/product_detailed_type_stock/models/product_template.py +++ b/product_detailed_type_stock/models/product_template.py @@ -10,4 +10,4 @@ class ProductTemplate(models.Model): detailed_type = fields.Selection(selection_add=[ ('product', 'Storable Product') - ], ondelete={'product': 'set default'}) + ], ondelete={'product': 'set default'}, default='product')