Files
tryton/doc/ref/rpc.rst
T
Cédric Krier a2c8111f26 Use context to check model and field access
* Model and Field access checked only if _check_access is set
* Add check_access to RPC
* Add check_access to Wizard and Report

issue4081
review8481002
2014-09-17 21:43:53 +02:00

30 lines
578 B
ReStructuredText

.. _ref-rpc:
.. module:: trytond.rpc
===
RPC
===
.. class:: RPC([readonly[, instantiate[, result[, check_access]]]])
RPC is an object to define the behavior of Remote Procedur Call.
Instance attributes are:
.. attribute:: RPC.readonly
The transaction mode
.. attribute:: RPC.instantiate
The position or the slice of the argument to be instanciated
.. attribute:: RPC.result
The function to transform the result
.. attribute:: RPC.check_access
Set `_check_access` in the context to activate the access right on model
and field. Default is `True`.