From 5411ad33405d0f49edab79f5e779a516da60cac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 1 Apr 2026 13:05:17 +0200 Subject: [PATCH] Add record name to chat channel --- trytond/trytond/ir/chat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trytond/trytond/ir/chat.py b/trytond/trytond/ir/chat.py index c6f00488d1..fae9999eb2 100644 --- a/trytond/trytond/ir/chat.py +++ b/trytond/trytond/ir/chat.py @@ -94,6 +94,9 @@ class Channel(ModelSQL, ModelView): (m, n) for m, n in Model.get_name_items() if issubclass(pool.get(m), ChatMixin)] + def get_rec_name(self, name): + return self.resource.rec_name + @classmethod def check_access(cls, resource): pool = Pool()