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