PEP8 fixes.
This commit is contained in:
parent
8dfda6d42c
commit
9066efb293
12
bank.py
12
bank.py
|
@ -17,13 +17,13 @@ class Bank(ModelSQL, ModelView):
|
|||
party = fields.Many2One('party.party', 'Party', required=True,
|
||||
ondelete='CASCADE')
|
||||
bank_code = fields.Char('National Code', select=1,
|
||||
states={
|
||||
'required': Not(Bool(Eval('bic')))
|
||||
}, depends=['bic'])
|
||||
states={
|
||||
'required': Not(Bool(Eval('bic')))
|
||||
}, depends=['bic'])
|
||||
bic = fields.Char('BIC/SWIFT', select=1,
|
||||
states={
|
||||
'required': Not(Bool(Eval('bank_code')))
|
||||
}, depends=['bank_code'])
|
||||
states={
|
||||
'required': Not(Bool(Eval('bank_code')))
|
||||
}, depends=['bank_code'])
|
||||
|
||||
def get_rec_name(self, name):
|
||||
code = self.bank_code if self.bank_code else self.bic
|
||||
|
|
4
party.py
4
party.py
|
@ -1,5 +1,5 @@
|
|||
#This file is part party_bank module for Tryton.
|
||||
#The COPYRIGHT file at the top level of this repository contains
|
||||
#The COPYRIGHT file at the top level of this repository contains
|
||||
#the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
|
@ -7,8 +7,8 @@ from trytond.pool import PoolMeta
|
|||
__all__ = ['Party']
|
||||
__metaclass__ = PoolMeta
|
||||
|
||||
|
||||
class Party:
|
||||
__name__ = 'party.party'
|
||||
|
||||
bank_accounts = fields.One2Many('bank.account', 'party', 'Bank Accounts')
|
||||
|
||||
|
|
Loading…
Reference in New Issue