From ccc3566b7ee0135387e866c8027ce2fc3a66de3d Mon Sep 17 00:00:00 2001 From: Bernat Brunet Date: Tue, 5 Sep 2023 12:38:39 +0200 Subject: [PATCH] PEP8 --- account.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/account.py b/account.py index b4e7566..e7d643b 100644 --- a/account.py +++ b/account.py @@ -50,18 +50,20 @@ class Configuration(metaclass=PoolMeta): fields.Selection('get_facturae_service', "Factura-e Service", help='Service to be used when post the invoice')) invoice_facturae_after = fields.TimeDelta("Send Factura-e after", - help="Grace period after which the invoice will be sent to the facturae " - "service. Applies only if a worker queue is activated.") + help="Grace period after which the invoice will be sent to the " + "facturae service. Applies only if a worker queue is activated.") @classmethod def default_facturae_service(cls, **pattern): - return cls.multivalue_model('facturae_service').default_facturae_service() + return cls.multivalue_model( + 'facturae_service').default_facturae_service() @classmethod def get_facturae_service(cls): pool = Pool() ConfigurationFacturae = pool.get('account.configuration.facturae') - return ConfigurationFacturae.fields_get(['facturae_service'])['facturae_service']['selection'] + return ConfigurationFacturae.fields_get(['facturae_service'])[ + 'facturae_service']['selection'] @classmethod def multivalue_model(cls, field):