From 19f3ab64cb62892f4a28c795580b60ca0cd7989e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Feb 2014 00:22:45 +0100 Subject: [PATCH] Fix error message "foreign_model_exist" The value argument has no meaning for this error message and the way it is retreived in changeset dbbbe6cae2bb is buggy. review3381002 --- trytond/ir/translation.xml | 4 ++-- trytond/model/modelsql.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/trytond/ir/translation.xml b/trytond/ir/translation.xml index 7e4e6f0aa9..7e6e6c29ea 100644 --- a/trytond/ir/translation.xml +++ b/trytond/ir/translation.xml @@ -215,8 +215,8 @@ this repository contains the full copyright notices and license terms. --> foreign_model_exist en_US error - Could not delete "%(value)s" records because they are used on field "%(field)s" of "%(model)s". - Could not delete "%(value)s" records because they are used on field "%(field)s" of "%(model)s". + Could not delete the records because they are used on field "%(field)s" of "%(model)s". + Could not delete the records because they are used on field "%(field)s" of "%(model)s". ir diff --git a/trytond/model/modelsql.py b/trytond/model/modelsql.py index 352525b77b..b37c0028f5 100644 --- a/trytond/model/modelsql.py +++ b/trytond/model/modelsql.py @@ -847,7 +847,6 @@ class ModelSQL(ModelStorage): (field_name, 'in', sub_ids), ], order=[]): error_args = Model._get_error_args(field_name) - error_args['value'] = cls._get_error_args('id')[1] cls.raise_user_error('foreign_model_exist', error_args=error_args)