details:   https://code.tryton.org/tryton/commit/e32664aae46e
branch:    default
user:      Korbinian Preisler <[email protected]>
date:      Thu Apr 09 17:45:01 2026 +0200
description:
        Add missing f-string prefix in search for contact mechanisms for chat

        Closes #14760
diffstat:

 modules/party/ir.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c54d776d9f27 -r e32664aae46e modules/party/ir.py
--- a/modules/party/ir.py       Mon Mar 16 18:42:56 2026 +0100
+++ b/modules/party/ir.py       Thu Apr 09 17:45:01 2026 +0200
@@ -141,7 +141,7 @@
         contacts = ContactMechanism.search([
                 'OR',
                 [
-                    ('rec_name', 'ilike', '{text}%'),
+                    ('rec_name', 'ilike', f'{text}%'),
                     ('type', '=', 'email'),
                     ],
                 ('name', 'ilike', f'%{text}%'),

Reply via email to