From 4a53d53b2b8d7ae6f2c6152bf9df6008ef38e501 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 --- opportunity.py | 5 +++++ opportunity.xml | 24 ------------------------ 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/opportunity.py b/opportunity.py index 6f462d43b8..df3da056e6 100644 --- a/opportunity.py +++ b/opportunity.py @@ -499,6 +499,11 @@ class SaleOpportunityLine(sequence_ordered(), ModelSQL, ModelView): del _states, _depends + @classmethod + def __setup__(cls): + super().__setup__() + cls.__access__.add('opportunity') + @classmethod def get_opportunity_states(cls): pool = Pool() diff --git a/opportunity.xml b/opportunity.xml index 69b1e769f3..49a4f6864a 100644 --- a/opportunity.xml +++ b/opportunity.xml @@ -243,30 +243,6 @@ this repository contains the full copyright notices and license terms. --> opportunity_line_tree - - - - - - - - - - - - - - - - - - - - - - - - sale.opportunity_employee tree