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 - - - - - - - - - - - - - - - -