Fix: Autopep8

This commit is contained in:
2024-10-21 20:45:58 -05:00
parent 23fa2996a6
commit 4ebe44ae45
10 changed files with 137 additions and 113 deletions

View File

@@ -6,6 +6,7 @@ from trytond.pyson import Eval
from trytond.transaction import Transaction
from trytond.pool import Pool
class Configuration(ModelSingleton, ModelView, ModelSQL):
"Configuration Chas Closures"
__name__ = 'sale.cash_closures'
@@ -17,19 +18,21 @@ class Configuration(ModelSingleton, ModelView, ModelSQL):
mismatch_limit = Monetary(
"Mismatch Limit", currency='currency', digits='currency')
account_mismatch_charge = fields.Many2One('account.account', "Account Mismatch Charge",
domain=[
('company', '=', Eval('company', 0)),
('type', '!=', None),
('closed', '!=', True),
],)
account_mismatch_charge = fields.Many2One(
'account.account', "Account Mismatch Charge",
domain=[
('company', '=', Eval('company', 0)),
('type', '!=', None),
('closed', '!=', True),
],)
account_mismatch_positive = fields.Many2One(
'account.account', "Account Mismatch Positivo",
domain=[
('company', '=', Eval('company', 0)),
('type', '!=', None),
('closed', '!=', True),
],)
account_mismatch_positive = fields.Many2One('account.account', "Account Mismatch Positivo",
domain=[
('company', '=', Eval('company', 0)),
('type', '!=', None),
('closed', '!=', True),
],)
@staticmethod
def default_currency():
Company = Pool().get('company.company')
@@ -39,4 +42,4 @@ class Configuration(ModelSingleton, ModelView, ModelSQL):
@staticmethod
def default_company():
return Transaction().context.get('company')
return Transaction().context.get('company')