Permit to set _check_access when using trytond config

This commit is contained in:
Cédric Krier
2026-08-31 13:39:42 +02:00
parent 86e3da9b96
commit 91f27f64fd
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Permit to set _check_access when using trytond config
Version 8.0.0 - 2026-04-20
--------------------------
+7
View File
@@ -204,6 +204,13 @@ class _TrytondMethod(object):
= rpc.convert(self._object, *args, **kwargs)
if self._config.skip_warning:
transaction.context['_skip_warnings'] = True
if 'context' in kwargs:
ctx = kwargs['context']
else:
ctx = args[-1]
if '_check_access' in ctx:
transaction.context['_check_access'] = (
ctx['_check_access'])
meth = getattr(self._object, self._name)
if (rpc.instantiate is None
or not is_instance_method(