From bc768136d05efe43db7f5171e5e91a81ffb6dbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 16 Jul 2018 14:49:34 +0200 Subject: [PATCH] Add documentation about RPC.unique issue7567 review52411002 --- doc/ref/rpc.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/ref/rpc.rst b/doc/ref/rpc.rst index d34e26f304..ef424174b6 100644 --- a/doc/ref/rpc.rst +++ b/doc/ref/rpc.rst @@ -5,7 +5,7 @@ RPC === -.. class:: RPC([readonly[, instantiate[, result[, check_access]]]]) +.. class:: RPC([readonly[, instantiate[, result[, check_access[, unique]]]]]) RPC is an object to define the behavior of Remote Procedur Call. @@ -27,3 +27,7 @@ Instance attributes are: Set `_check_access` in the context to activate the access right on model and field. Default is `True`. + +.. attribute:: RPC.unique + + If set, it ensures the instantiated records are unique. Default is `True`.