From 5a40719b1cf42d6c019ab55e0860beeaea93e331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Sun, 14 Jan 2024 13:29:04 +0100 Subject: [PATCH] module_analysis_price: add missing depends --- module_analysis_price/models/ir_module_module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module_analysis_price/models/ir_module_module.py b/module_analysis_price/models/ir_module_module.py index 06929eaa5..464297255 100644 --- a/module_analysis_price/models/ir_module_module.py +++ b/module_analysis_price/models/ir_module_module.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -from odoo import fields, models +from odoo import api, fields, models class IrModuleModule(models.Model): @@ -15,6 +15,7 @@ class IrModuleModule(models.Model): store=True, ) + @api.depends("python_code_qty", "xml_code_qty", "js_code_qty") def _compute_code_qty(self): for record in self: record.code_qty = (