From 25c7937ec210beca5938ab34e0872a1ec6f6e65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 8 Jan 2023 20:40:59 +0100 Subject: [PATCH] Replace model access by __access__ for rule --- trytond/trytond/ir/rule.py | 1 + trytond/trytond/res/ir.xml | 16 +--------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/trytond/trytond/ir/rule.py b/trytond/trytond/ir/rule.py index 9f42c96a74..0743a3d7f2 100644 --- a/trytond/trytond/ir/rule.py +++ b/trytond/trytond/ir/rule.py @@ -116,6 +116,7 @@ class Rule(ModelSQL, ModelView): @classmethod def __setup__(cls): super().__setup__() + cls.__access__.add('rule_group') table = cls.__table__() cls._sql_indexes.add( diff --git a/trytond/trytond/res/ir.xml b/trytond/trytond/res/ir.xml index 0b188b93a7..498738db30 100644 --- a/trytond/trytond/res/ir.xml +++ b/trytond/trytond/res/ir.xml @@ -176,21 +176,7 @@ this repository contains the full copyright notices and license terms. --> - - - - - - - - - - - - - - - +