From 778db452f452f8842086a9ddfce059983b5522e8 Mon Sep 17 00:00:00 2001 From: Zina Rasoamanana Date: Thu, 27 Jul 2023 16:17:54 +0200 Subject: [PATCH] [16.0][FIX]Do not raise UserError in inverse_expression when using multi --- mis_builder/models/mis_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mis_builder/models/mis_report.py b/mis_builder/models/mis_report.py index 8c99dd550..dfc03b55e 100644 --- a/mis_builder/models/mis_report.py +++ b/mis_builder/models/mis_report.py @@ -182,7 +182,7 @@ def _compute_expression(self): def _inverse_expression(self): for kpi in self: if kpi.multi: - raise UserError(_("Can not update a multi kpi from " "the kpi line")) + continue if kpi.expression_ids: kpi.expression_ids[0].write({"name": kpi.expression, "subkpi_id": None}) for expression in kpi.expression_ids[1:]: