From da0f1271dfdcd9304031e635f8acf15c28a1d95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 7 Mar 2021 11:13:53 +0100 Subject: [PATCH] Add __access__ to Model issue9903 review324601002 --- forecast.py | 1 + forecast.xml | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/forecast.py b/forecast.py index c8bab764ee..3caa8a7bc6 100644 --- a/forecast.py +++ b/forecast.py @@ -310,6 +310,7 @@ class ForecastLine(ModelSQL, ModelView): @classmethod def __setup__(cls): super(ForecastLine, cls).__setup__() + cls.__access__.add('forecast') t = cls.__table__() cls._sql_constraints += [ ('forecast_product_uniq', Unique(t, t.forecast, t.product), diff --git a/forecast.xml b/forecast.xml index 278036c4a1..f428920d2d 100644 --- a/forecast.xml +++ b/forecast.xml @@ -107,22 +107,6 @@ this repository contains the full copyright notices and license terms. --> - - - - - - - - - - - - - - - - cancel Cancel