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)