[FIX] learning_base: product type

This commit is contained in:
clementthomas
2023-06-15 16:59:53 +02:00
parent 387f068fd5
commit 03e28bb16b

View File

@@ -61,4 +61,7 @@ class ProductTemplate(models.Model):
for record in self:
record.is_learning = record.detailed_type == 'learning'
def _detailed_type_mapping(self):
type_mapping = super()._detailed_type_mapping()
type_mapping['learning'] = 'service'
return type_mapping