FIX typo UserWarning key (clean)

#048915
This commit is contained in:
Raimon Esteve 2022-02-15 16:30:55 +01:00
parent e50798e544
commit c168d4dc13
1 changed files with 1 additions and 1 deletions

View File

@ -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)