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