From 91eb0337df6a82facf27a5f769bbb2e01852a7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 26 May 2021 23:51:13 +0200 Subject: [PATCH] Use agent access for selection access issue10456 review365381002 --- commission.py | 1 + commission.xml | 29 ----------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/commission.py b/commission.py index 45a8798eee..bcde012fac 100644 --- a/commission.py +++ b/commission.py @@ -182,6 +182,7 @@ class AgentSelection(sequence_ordered(), MatchMixin, ModelSQL, ModelView): @classmethod def __setup__(cls): super().__setup__() + cls.__access__.add('agent') cls._order.insert(0, ('party', 'ASC NULLS LAST')) cls._order.insert(1, ('employee', 'ASC NULLS LAST')) diff --git a/commission.xml b/commission.xml index 8254cbfc6a..f0f6615f59 100644 --- a/commission.xml +++ b/commission.xml @@ -152,35 +152,6 @@ this repository contains the full copyright notices and license terms. --> - - User in companies - - - - - - - - - - - - - - - - - - - - - - - - commission.plan form