From 4238412e3ec3e0a2b724526f7200515f7f882d53 Mon Sep 17 00:00:00 2001 From: clementthomas Date: Fri, 16 Jun 2023 11:19:26 +0200 Subject: [PATCH] [IMP] training-tools: is_learning stored --- learning_base/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learning_base/models/product_template.py b/learning_base/models/product_template.py index 2f05c6e..4ebed90 100644 --- a/learning_base/models/product_template.py +++ b/learning_base/models/product_template.py @@ -17,7 +17,7 @@ class learningFinancialProgram(models.Model): class ProductTemplate(models.Model): _inherit = ['product.template'] - is_learning = fields.Boolean(compute='_compute_is_learning') + is_learning = fields.Boolean(compute='_compute_is_learning', store=True) detailed_type = fields.Selection(selection_add=[ ('learning', 'Training'), ], ondelete={'learning': 'set service'})