From 123105f414bab238522f59504994a8a7d21955a2 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Sat, 28 Oct 2023 15:00:44 +0200 Subject: [PATCH] [FIX] base_user_role_company: Pylint fix --- base_user_role_company/models/role.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base_user_role_company/models/role.py b/base_user_role_company/models/role.py index 0fdd234d..4e03df16 100644 --- a/base_user_role_company/models/role.py +++ b/base_user_role_company/models/role.py @@ -26,9 +26,10 @@ class ResUsersRoleLine(models.Model): and record.company_id not in record.user_id.company_ids ): raise ValidationError( - _('User "{}" does not have access to the company "{}"').format( - record.user_id.name, record.company_id.name + _( + 'User "%(user)s" does not have access to the company "%(company)s"' ) + % {"user": record.user_id.name, "company": record.company_id.name} ) _sql_constraints = [