PEP8
This commit is contained in:
parent
840b1c5e74
commit
ccc3566b7e
10
account.py
10
account.py
|
@ -50,18 +50,20 @@ class Configuration(metaclass=PoolMeta):
|
||||||
fields.Selection('get_facturae_service', "Factura-e Service",
|
fields.Selection('get_facturae_service', "Factura-e Service",
|
||||||
help='Service to be used when post the invoice'))
|
help='Service to be used when post the invoice'))
|
||||||
invoice_facturae_after = fields.TimeDelta("Send Factura-e after",
|
invoice_facturae_after = fields.TimeDelta("Send Factura-e after",
|
||||||
help="Grace period after which the invoice will be sent to the facturae "
|
help="Grace period after which the invoice will be sent to the "
|
||||||
"service. Applies only if a worker queue is activated.")
|
"facturae service. Applies only if a worker queue is activated.")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def default_facturae_service(cls, **pattern):
|
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
|
@classmethod
|
||||||
def get_facturae_service(cls):
|
def get_facturae_service(cls):
|
||||||
pool = Pool()
|
pool = Pool()
|
||||||
ConfigurationFacturae = pool.get('account.configuration.facturae')
|
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
|
@classmethod
|
||||||
def multivalue_model(cls, field):
|
def multivalue_model(cls, field):
|
||||||
|
|
Loading…
Reference in New Issue