From a4cdbeb11fb4b4398024475ded5b49692a77c47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 8 Jan 2023 20:41:51 +0100 Subject: [PATCH] Replace model access by __access__ for module --- trytond/trytond/ir/module.py | 1 + trytond/trytond/res/ir.xml | 16 +--------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/trytond/trytond/ir/module.py b/trytond/trytond/ir/module.py index 29b6b71b08..394203cba4 100644 --- a/trytond/trytond/ir/module.py +++ b/trytond/trytond/ir/module.py @@ -345,6 +345,7 @@ class ModuleDependency(ModelSQL, ModelView): @classmethod def __setup__(cls): super(ModuleDependency, cls).__setup__() + cls.__access__.add('module') table = cls.__table__() cls._sql_constraints += [ ('name_module_uniq', Unique(table, table.name, table.module), diff --git a/trytond/trytond/res/ir.xml b/trytond/trytond/res/ir.xml index 498738db30..3dd1f00ab0 100644 --- a/trytond/trytond/res/ir.xml +++ b/trytond/trytond/res/ir.xml @@ -192,21 +192,7 @@ this repository contains the full copyright notices and license terms. --> - - - - - - - - - - - - - - - +