From e201484c37dd86ce0f18d8d99f386ad4809c49ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 8 Feb 2016 18:07:44 +0100 Subject: [PATCH] Add missing doc about "Record Rule" review18941002 --- doc/topics/access_rights.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/topics/access_rights.rst b/doc/topics/access_rights.rst index 5f625e0220..0e69bbab64 100644 --- a/doc/topics/access_rights.rst +++ b/doc/topics/access_rights.rst @@ -26,10 +26,19 @@ Same as for model access but applied on the field. It uses records of Button ====== -For each button of a model the records of 'ir.model.button` define the list of +For each button of a model the records of `ir.model.button` define the list of groups that are allowed to call it. Record Rule =========== -.. TODO +They are defined by records of `ir.rule.group` which contains a list of +`ir.rule` domain to which the rule applies. The group are selected by groups or +users. The access is granted for a record: + + - if the user is in at least one group that has the permission activated, + + - or if the user is in no group by there is a default group with the + permission, + + - or if there is a global group with the permission.