From c168d4dc139f7e978033627a4b55548b79da1cb5 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Tue, 15 Feb 2022 16:30:55 +0100 Subject: [PATCH] FIX typo UserWarning key (clean) #048915 --- plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan.py b/plan.py index ea7ae7c..e285985 100644 --- a/plan.py +++ b/plan.py @@ -214,7 +214,7 @@ class Plan(ModelSQL, ModelView): if product_lines: key = 'task_product_lines_will_be_removed.%d' % product_lines[0].id if Warning.check(key): - raise UserWarning('remove_product_lines', + raise UserWarning(key, gettext('product_cost_plan.product_lines_will_be_removed')) ProductLine.delete(product_lines)