From db04983f1c7b7bf1cdeff22f1b435e1d4901fa4e 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 --- routing.py | 5 +++++ routing.xml | 16 ---------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/routing.py b/routing.py index 634a20d584..24db2541ef 100644 --- a/routing.py +++ b/routing.py @@ -27,6 +27,11 @@ class RoutingStep(sequence_ordered(), ModelSQL, ModelView): routing = fields.Many2One('production.routing', 'Routing', required=True, ondelete='CASCADE') + @classmethod + def __setup__(cls): + super().__setup__() + cls.__access__.add('routing') + def get_rec_name(self, name): return self.operation.rec_name diff --git a/routing.xml b/routing.xml index ce834efc06..4a6af38a64 100644 --- a/routing.xml +++ b/routing.xml @@ -118,21 +118,5 @@ this repository contains the full copyright notices and license terms. --> form routing_step_form - - - - - - - - - - - - - - - -