details: https://code.tryton.org/tryton/commit/d3c356d9a99a
branch: default
user: Nicolas Évrard <[email protected]>
date: Thu Oct 02 09:44:58 2025 +0200
description:
Correctly get model and id of resource when checking the Channel access
rights
diffstat:
trytond/trytond/ir/chat.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 3f1dcbdcacd0 -r d3c356d9a99a trytond/trytond/ir/chat.py
--- a/trytond/trytond/ir/chat.py Thu Oct 02 09:42:19 2025 +0200
+++ b/trytond/trytond/ir/chat.py Thu Oct 02 09:44:58 2025 +0200
@@ -58,7 +58,7 @@
def check_access(cls, resource):
pool = Pool()
ModelAccess = pool.get('ir.model.access')
- model, id_ = resource.split(',')
+ model, id_ = str(resource).split(',')
ModelAccess.check(model, mode='read')
# TODO check record rule