From e685c40ec27951ca1a571584c5ed7cfec1fe7fbf 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 --- price_list.py | 5 +++++ price_list.xml | 16 ---------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/price_list.py b/price_list.py index bc927ef07d..820d577cb4 100644 --- a/price_list.py +++ b/price_list.py @@ -123,6 +123,11 @@ class PriceListLine(sequence_ordered(), ModelSQL, ModelView, MatchMixin): '- cost_price: the cost price of the product\n' '- list_price: the list price of the product')) + @classmethod + def __setup__(cls): + super().__setup__() + cls.__access__.add('price_list') + @staticmethod def default_formula(): return 'unit_price' diff --git a/price_list.xml b/price_list.xml index caf355d551..5dd5eca1f1 100644 --- a/price_list.xml +++ b/price_list.xml @@ -85,21 +85,5 @@ this repository contains the full copyright notices and license terms. --> price_list_line_tree_sequence - - - - - - - - - - - - - - - -