From 3351f84262cef12ecfa8ca930b2d2b5cab170a2d Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Wed, 10 Mar 2021 09:31:49 +0100 Subject: [PATCH] Remove duplicate method to get shipment grouping methods issue10169 review357351002 --- configuration.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/configuration.py b/configuration.py index 7a48f87d24..81410bd6a5 100644 --- a/configuration.py +++ b/configuration.py @@ -30,23 +30,9 @@ class Configuration(metaclass=PoolMeta): return pool.get('sale.configuration.sale_method') return super(Configuration, cls).multivalue_model(field) - @classmethod - def get_sale_shipment_grouping_methods(cls): - pool = Pool() - Party = pool.get('party.party') - field_name = 'sale_shipment_grouping_method' - return Party.fields_get([field_name])[field_name]['selection'] - class ConfigurationSaleMethod(metaclass=PoolMeta): __name__ = 'sale.configuration.sale_method' sale_shipment_grouping_method = sale_shipment_grouping_method get_sale_shipment_grouping_methods = get_sale_shipment_grouping_methods - - @classmethod - def get_sale_shipment_grouping_methods(cls): - pool = Pool() - Party = pool.get('party.party') - field_name = 'sale_shipment_grouping_method' - return Party.fields_get([field_name])[field_name]['selection']